shake-ats 1.4.1.0 → 1.4.1.1
raw patch · 3 files changed
+6/−3 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Development.Shake.ATS: cgen :: ATSToolConfig -> FilePath -> Rules ()
+ Development.Shake.ATS: cgen :: ATSToolConfig -> [String] -> FilePath -> Rules ()
Files
- shake-ats.cabal +1/−1
- src/Development/Shake/ATS.hs +4/−2
- src/Development/Shake/ATS/Environment.hs +1/−0
shake-ats.cabal view
@@ -1,5 +1,5 @@ name: shake-ats-version: 1.4.1.0+version: 1.4.1.1 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
@@ -86,7 +86,7 @@ -- This is the @$PATSHOMELOCS@ variable to be passed to the shell. patsHomeLocs :: Int -> String patsHomeLocs n = intercalate ":" $ (<> ".atspkg/contrib") . ("./" <>) <$> g- where g = [ join $ replicate i "../" | i <- [1..n] ]+ where g = [ join $ replicate i "../" | i <- [0..n] ] makeCFlags :: [String] -- ^ Inputs -> [ForeignCabal] -- ^ Haskell libraries@@ -196,11 +196,13 @@ atsCommand tc atsSrc out cgen :: ATSToolConfig+ -> [String] -- ^ Additional source files -> FilePath -- ^ Directory containing ATS source code -> Rules ()-cgen tc dir =+cgen tc extras dir = "//*.c" %> \out -> do+ need extras let sourceFile = dir ++ "/" ++ (takeBaseName out -<.> "dats") handleSource tc sourceFile atsCommand tc sourceFile out
src/Development/Shake/ATS/Environment.hs view
@@ -28,4 +28,5 @@ TL.unpack . TL.replace (TL.pack "./") (TL.pack $ p ++ "/") . TL.replace (TL.pack "../") (TL.pack $ joinPath (init $ splitPath p) ++ "/")+ . TL.replace (TL.pack "$PATSHOMELOCS") (TL.pack ".atspkg/contrib") . TL.pack