packages feed

shake-ats 1.10.2.3 → 1.10.3.0

raw patch · 4 files changed

+6/−16 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,8 +1,8 @@ # shake-ats -## 1.10.2.3+## 1.10.3.0 -  * `cleanATS` is now more precise+  * Don't copy files to `$PATSHOME`  ## 1.10.2.2 
shake-ats.cabal view
@@ -1,6 +1,6 @@ cabal-version:   1.18 name:            shake-ats-version:         1.10.2.3+version:         1.10.3.0 license:         BSD3 license-file:    LICENSE copyright:       Copyright: (c) 2018-2019 Vanessa McHale
src/Development/Shake/ATS.hs view
@@ -49,7 +49,7 @@ import           Development.Shake.FilePath import           Development.Shake.Version import           Language.ATS-import           System.Directory                  (createDirectoryIfMissing, doesFileExist)+import           System.Directory                  (doesFileExist) import           System.Environment                (getEnv) import           System.Exit                       (ExitCode (ExitSuccess)) @@ -90,14 +90,6 @@ gcFlag False = "-DATS_MEMALLOC_LIBC" gcFlag True  = "-DATS_MEMALLOC_GCBDW" --- Copy source files to the appropriate place. This is necessary because--- @#include@s in ATS are weird.-copySources :: ATSToolConfig -> [FilePath] -> Action ()-copySources ATSToolConfig{..} sources =-    forM_ sources $ \dep -> do-        liftIO $ createDirectoryIfMissing True (_patsHome </> takeDirectory dep)-        copyFile' dep (_patsHome </> dep)- makeCFlags :: [String] -- ^ Inputs            -> [ForeignCabal] -- ^ Haskell libraries            -> String -- ^ GHC version@@ -216,12 +208,10 @@ cgen toolConfig' extras atsGens atsSrc cFiles =     cFiles %> \out -> do -        -- tell shake which files to track and copy them to the appropriate-        -- directory+        -- tell shake which files to track         need extras         sources <- transitiveDeps atsGens [atsSrc]         need sources-        copySources toolConfig' sources          atsCommand toolConfig' atsSrc out 
src/Development/Shake/ATS/Rules.hs view
@@ -102,4 +102,4 @@ cleanATS =     zipWithM_ removeFilesAfter         [".", ".atspkg", "ats-deps"]-        [["//*_dats.c", "//*_sats.c", "//*_lats.dats", "//tags"], ["//*"], ["//*"]]+        [["//*.c", "//*_lats.dats", "//tags"], ["//*"], ["//*"]]