[Haskell-cafe] optional ghc-options based on GHC version?

Mateusz Kowalczyk fuuzetsu at fuuzetsu.co.uk
Thu Sep 18 02:38:07 UTC 2014


Hi,

I have a project here where GHC's option -flate-dmd-anal gets out some
extra speed but the flag is not available on 7.6.3. How can I specify in
the cabal file that I only want to pass this through when building with
7.8.3 or newer? It'd be a shame to not take advantage of the extra speed
on 7.8.3 just because we want to support 7.6.3 too for a bit longer. I
was unable to find the info online.

Thanks.

-- 
Mateusz K.


More information about the Haskell-Cafe mailing list