Skip to content

Add ghc-lib flag to force use ghc-lib-parser even if ghc is supported #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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