Skip to content

Commit f7b89f0

Browse files
committed
Add (failing) tests for #5086 [ci skip]
1 parent 3cc8bdf commit f7b89f0

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

Cabal/Cabal.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ extra-source-files:
8282
tests/ParserTests/regressions/encoding-0.8.cabal
8383
tests/ParserTests/regressions/encoding-0.8.expr
8484
tests/ParserTests/regressions/encoding-0.8.format
85+
tests/ParserTests/regressions/extensions-paths-5054.cabal
86+
tests/ParserTests/regressions/extensions-paths-5054.check
8587
tests/ParserTests/regressions/generics-sop.cabal
8688
tests/ParserTests/regressions/generics-sop.expr
8789
tests/ParserTests/regressions/generics-sop.format

Cabal/tests/CheckTests.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ checkTests = testGroup "regressions"
2727
[ checkTest "nothing-unicode.cabal"
2828
, checkTest "haddock-api-2.18.1-check.cabal"
2929
, checkTest "issue-774.cabal"
30+
, checkTest "extensions-paths-5054.cabal"
3031
]
3132

3233
checkTest :: FilePath -> TestTree
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: extensions-paths
2+
version: 5054
3+
category: Test
4+
maintainer: Oleg Grenrus
5+
license: BSD3
6+
license-file: LICENSe
7+
synopsis: Paths_pkg module + "bad" extensions + old cabal
8+
description:
9+
Only cabal-version: 2.2 or later will build Paths_pkg ok with
10+
11+
* OverloadedStrings
12+
13+
* OverloadedLists
14+
15+
* RebindableSyntax
16+
17+
Other extensions (like NoImplicitPrelude) were handled before
18+
build-type: Simple
19+
cabal-version: 1.12
20+
21+
library
22+
default-language: Haskell2010
23+
exposed-modules: Issue Paths_extensions_paths
24+
default-extensions:
25+
RebindableSyntax
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Implement me!

0 commit comments

Comments
 (0)