shake-ats 1.1.0.1 → 1.1.0.2
raw patch · 2 files changed
+5/−5 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- shake-ats.cabal +1/−1
- src/Development/Shake/ATS.hs +4/−4
shake-ats.cabal view
@@ -1,5 +1,5 @@ name: shake-ats-version: 1.1.0.1+version: 1.1.0.2 synopsis: Utilities for building ATS projects with shake description: Various helper functions for building [ATS](http://www.ats-lang.org/) with the [shake](http://shakebuild.com/) library homepage: https://github.com/vmchale/shake-ats#readme
src/Development/Shake/ATS.hs view
@@ -142,7 +142,7 @@ -> Bool -- ^ Whether to use the Garbage collector -> [String] makeCFlags ss fc b = gcFlag' : (hsExtra <> ss) where- gcFlag' = (bool ("-optc" <>) id noHs) $ gcFlag b+ gcFlag' = bool ("-optc" <>) id noHs $ gcFlag b hsExtra = bool ["--make", "-odir", ".atspkg", "-no-hs-main", "-package-db", "~/.cabal/store/ghc-8.2.2/package.db/"] mempty noHs noHs = null fc @@ -176,12 +176,12 @@ cmd_ ["mkdir", "-p", dropDirectory1 out] path <- fromMaybe "" <$> getEnv "PATH" let toLibs = fmap ("-l" <>)- let libs' = bool libs ("gc" : libs) gc+ let libs' = ("atslib" :) $ bool libs ("gc" : libs) gc command [EchoStderr False, AddEnv "PATSHOME" home, AddEnv "PATH" (home ++ "/bin:" ++ path), AddEnv "PATSHOMELOCS" $ patsHomeLocs 5] (home ++ "/bin/patscc")- (mconcat - [ [sourceFile, "-atsccomp", cc ++ " -I" ++ h ++ "/ccomp/runtime/ -I" ++ h ++ " -L" ++ h' ++ "/lib", "-o", out, "-cleanaft"]+ (mconcat+ [ [sourceFile, "-atsccomp", cc ++ " -I" ++ h ++ "/ccomp/runtime/ -I" ++ h ++ " -L" ++ h' ++ "/lib" ++ " -L" ++ home ++ "/ccomp/atslib/lib", "-o", out, "-cleanaft"] , makeCFlags cFlags hs gc , toLibs libs' ])