Skip to content

Commit 7c27cb4

Browse files
committed
Add --ignore-glob for ghc-supported-languages
1 parent a2c730d commit 7c27cb4

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.hlint.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@
5757
- --ignore-glob=Cabal-syntax/src/Distribution/Fields/Lexer.hs
5858
- --ignore-glob=Cabal-tests/tests/custom-setup/CabalDoctestSetup.hs
5959
- --ignore-glob=Cabal-tests/tests/custom-setup/IdrisSetup.hs
60+
# TODO: Remove --ignore-glob for ghc-supported-languages.hs when this module compiles
61+
- --ignore-glob=Cabal-tests/tests/misc/ghc-supported-languages.hs
6062
- --ignore-glob=cabal-testsuite/PackageTests/BuildWays/q/app/Main.hs
6163
- --ignore-glob=cabal-testsuite/PackageTests/CMain/10168/src/Lib.hs
6264
- --ignore-glob=cabal-testsuite/PackageTests/CmmSources/src/Demo.hs

Cabal-tests/tests/misc/ghc-supported-languages.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import System.Exit
1717
-- | A list of GHC extensions that are deliberately not registered,
1818
-- e.g. due to being experimental and not ready for public consumption
1919
--
20-
exceptions = []
20+
exceptions = map readExtension []
2121

2222
checkProblems :: [Extension] -> [String]
2323
checkProblems implemented =

0 commit comments

Comments
 (0)