Skip to content

Commit 93103cf

Browse files
bugfix imliedDisables; don't drop ext on the floor (#1656)
1 parent 13a9821 commit 93103cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hlint.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ library
9090
build-depends:
9191
ghc-lib-parser == 9.12.*
9292
build-depends:
93-
ghc-lib-parser-ex >= 9.12.0.0 && < 9.13.0
93+
ghc-lib-parser-ex >= 9.12 && < 9.13
9494

9595
if flag(gpl)
9696
build-depends: hscolour >= 1.21

src/GHC/All.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impliedEnables ext = case Data.List.lookup ext extensionImplications of
174174
impliedDisables :: Extension -> [Extension]
175175
impliedDisables ext = case Data.List.lookup ext extensionImplications of
176176
Just exts -> ext : snd exts
177-
Nothing -> []
177+
Nothing -> [ext]
178178

179179
-- | Parse a Haskell module. Applies the C pre processor, and uses
180180
-- best-guess fixity resolution if there are ambiguities. The

0 commit comments

Comments
 (0)