You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.
Is your feature request related to a problem? Please describe.
I want the same code to compile with both ahc-ghc and ghc, but some libraries (e.g. sdl2) are not compatible with ahc-ghc.
Describe the solution you'd like
I wish ahc-cabal would recognize the conditionimpl(ahc-ghc). Currently, it recognizes impl(ghc), so I cannot use this condition to distinguish ahc-ghc from ghc.
Describe alternatives you've considered
I have defined a configuration flag instead:
flag asterius
description: Whether we're compiling with ahc-ghc (true) or ghc (false).
default: false
manual: true
It works fine, I just have to remember to pass --flags="asterius" when compiling with ahc-cabal and to not pass it when compiling with cabal. Since the cabal package description format provides an easy way to detect the compiler automatically, it just seems unfortunate that I have to specify it manually :)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is your feature request related to a problem? Please describe.
I want the same code to compile with both ahc-ghc and ghc, but some libraries (e.g. sdl2) are not compatible with ahc-ghc.
Describe the solution you'd like
I wish ahc-cabal would recognize the condition
impl(ahc-ghc)
. Currently, it recognizesimpl(ghc)
, so I cannot use this condition to distinguish ahc-ghc from ghc.Describe alternatives you've considered
I have defined a configuration flag instead:
It works fine, I just have to remember to pass
--flags="asterius"
when compiling withahc-cabal
and to not pass it when compiling withcabal
. Since the cabal package description format provides an easy way to detect the compiler automatically, it just seems unfortunate that I have to specify it manually :)The text was updated successfully, but these errors were encountered: