diff options
author | Daniel Gröber <dxld@darkboxed.org> | 2018-08-12 04:31:35 +0200 |
---|---|---|
committer | Daniel Gröber <dxld@darkboxed.org> | 2018-08-12 05:02:46 +0200 |
commit | 1fbc090874cc9631cc54898b0af58583ce35bc29 (patch) | |
tree | 02c84b5375e4341b4c60e95184916ae13da42358 /lib/Distribution | |
parent | 3d5f08a69d67e7770f0c6e134fe64bcfd7009ff2 (diff) |
Add Cabal 2.4 support
Diffstat (limited to 'lib/Distribution')
-rw-r--r-- | lib/Distribution/Helper.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Distribution/Helper.hs b/lib/Distribution/Helper.hs index 3a49031..1a5740b 100644 --- a/lib/Distribution/Helper.hs +++ b/lib/Distribution/Helper.hs @@ -113,7 +113,7 @@ import Data.Version import Data.Typeable import Data.Function import Data.Functor.Apply -import Distribution.Simple.BuildPaths (exeExtension) +import Distribution.System (buildOS, OS(Windows)) import System.Environment import System.FilePath hiding ((<.>)) import qualified System.FilePath as FP @@ -584,4 +584,6 @@ lookupEnv' :: String -> IO (Maybe String) lookupEnv' k = lookup k <$> getEnvironment exeExtension' :: FilePath -exeExtension' = Distribution.Simple.BuildPaths.exeExtension +exeExtension' + | Windows <- buildOS = "exe" + | otherwise = "" |