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 13, 2022
1 parent bf7aaaf commit 14d9f20
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 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 @@ -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
Expand Down
21 changes: 11 additions & 10 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit 14d9f20

Please sign in to comment.