diff --git a/hlint.cabal b/hlint.cabal index 97ca165b7..6ea29def5 100644 --- a/hlint.cabal +++ b/hlint.cabal @@ -53,7 +53,7 @@ flag gpl description: Use GPL libraries, specifically hscolour flag ghc-lib - default: False + default: True manual: True description: Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported @@ -90,7 +90,7 @@ library build-depends: ghc-lib-parser == 9.2.* build-depends: - ghc-lib-parser-ex >= 9.2.0.3 && < 9.2.1 + ghc-lib-parser-ex >= 9.2.1.0 && < 9.2.2 if flag(gpl) build-depends: hscolour >= 1.21 diff --git a/stack.yaml b/stack.yaml index 6a1e1d7b2..098f50fc4 100644 --- a/stack.yaml +++ b/stack.yaml @@ -5,19 +5,20 @@ packages: extra-deps: - ghc-lib-parser-9.2.3.20220709 - - ghc-lib-parser-ex-9.2.0.4 + - ghc-lib-parser-ex-9.2.1.0 # To test hlint against experimental builds of ghc-lib-parser-ex, # modify extra-deps like this: # - archive: /users/shayne/project/ghc-lib-parser-ex/ghc-lib-parser-ex-8.10.0.18.tar.gz # sha256: "0000000000000000000000000000000000000000000000000000000000000000" -ghc-options: {"$locals": -ddump-to-file -ddump-hi -Werror=unused-imports -Werror=unused-local-binds -Werror=unused-top-binds -Werror=orphans} - -# Enabling this stanza forces both hlint and ghc-lib-parser-ex to -# depend on ghc-lib-parser. +# Enabling this stanza allows hlint and ghc-lib-parser-ex to link to +# the native ghc compiler libs rather than ghc-lib-parser when the +# compiler version is suitable. # flags: -# hlint: -# ghc-lib: true -# ghc-lib-parser-ex: -# auto: false -# no-ghc-lib: false +# hlint: +# ghc-lib: false +# ghc-lib-parser-ex: +# auto: true +# no-ghc-lib: false + +ghc-options: {"$locals": -ddump-to-file -ddump-hi -Werror=unused-imports -Werror=unused-local-binds -Werror=unused-top-binds -Werror=orphans}