Conversation
|
Hey, we're having some trouble building this package in nixpkgs, related to this flag logic: We're using |
|
Hi @nh2 ,
I looked at 8.8.5.8. The way it works is, if the Cabal flag The intent of all this is to speed up build times for programs like hlint if the build compiler version is compatible with the parse tree it's targeting. It's purely an optimization. I would suggest that the simplest thing you can do is simply always define the flag: I suggest for |
|
@shayne-fletcher Thanks for your explanation! It makes sense to me. By the way, I think the reason So that sounds like enabling the flag is exactly what I need to do. One remaining question though: In ghc-lib-parser-ex/ghc-lib-parser-ex.cabal Line 58 in 5087bde you have a version limit Knowing that would help me figure based on what conditional I should enable the flag. |
|
So, versions of cabal new-build --constraint "ghc-lib-parser-ex -auto -no-ghc-lib"or respecting the default of cabal new-build --constraint "ghc-lib-parser-ex -auto"will have the effect you want. For these versions of |
Have two flags
autoandno-ghc-lib. Default behavior exactly ashlintlinkingghc-lib-parser-8.10*if not on ghc-8.10 andghc-8.10*otherwise.