Skip to content

Commit

Permalink
Add ghc-lib flag to force use ghc-lib-parser even if ghc is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
July541 authored Apr 27, 2022
1 parent 645acc4 commit a617127
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion stylish-haskell.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ Extra-source-files:
README.markdown,
data/stylish-haskell.yaml

Flag ghc-lib
Default: False
Manual: True
Description:
Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported

Common depends
Ghc-options: -Wall
Default-language: Haskell2010
Expand All @@ -46,7 +52,7 @@ Common depends
Build-depends:
semigroups >= 0.18 && < 0.20

if impl(ghc >= 9.2.2)
if impl(ghc >= 9.2.2) && (!flag(ghc-lib))
Build-depends:
ghc >= 9.2 && < 9.3,
ghc-boot,
Expand Down

0 comments on commit a617127

Please sign in to comment.