Skip to content

Commit

Permalink
flip ghc-lib default to True
Browse files Browse the repository at this point in the history
  • Loading branch information
shayne-fletcher committed Jul 10, 2022
1 parent 377743b commit 9a049f0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions hlint.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -89,7 +89,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
Expand Down
23 changes: 12 additions & 11 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@ packages:
- .

extra-deps:
- ghc-lib-parser-9.2.3.20220507
- ghc-lib-parser-ex-9.2.0.4
- ghc-lib-parser-9.2.3.20220527
- 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}

0 comments on commit 9a049f0

Please sign in to comment.