Created
May 23, 2013 03:52
-
-
Save cartazio/5632636 to your computer and use it in GitHub Desktop.
shim to make sure cabalized package only builds with cabal >= 1.17 add to your Setup.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE TemplateHaskell #-} | |
{-# LANGUAGE QuasiQuotes #-} | |
import Language.Haskell.TH | |
import Distribution.Simple | |
import Distribution.Simple.Utils | |
goodVersion= | |
$(if cabalVersion >= Version [1,17,0] [] | |
then [| "its all good" |] | |
else [| 1 + "this package should not be used with cabal version < 1.17.0 , it will break" |] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment