ats-setup 0.3.0.1 → 0.3.0.2
raw patch · 3 files changed
+10/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ats-setup.cabal +1/−1
- src/Distribution/ATS.hs +8/−1
- src/Distribution/ATS/Compiler.hs +1/−0
ats-setup.cabal view
@@ -1,5 +1,5 @@ name: ats-setup-version: 0.3.0.1+version: 0.3.0.2 synopsis: ATS scripts for Cabal builds description: This package contains various scripts that go in a package's @Setup.hs@ to make building libraries with ATS dependencies easier. license: BSD3
src/Distribution/ATS.hs view
@@ -64,9 +64,16 @@ , postBuild = \_ _ _ -> maybeCleanBuild } +installCompiler :: IO ()+installCompiler = do+ b <- doesFileExist "ats-deps/0.3.9/done"+ unless b $+ fetchCompiler' >>+ setupCompiler'+ -- | Same as 'atsUserHooks', but installs @atslib@ as well. atsLibUserHooks :: [ATSDependency] -> UserHooks-atsLibUserHooks deps = simpleUserHooks { preConf = \_ _ -> mconcat [ fetchCompiler', setupCompiler', fetchDependencies deps ] >> pure emptyHookedBuildInfo+atsLibUserHooks deps = simpleUserHooks { preConf = \_ _ -> mconcat [ installCompiler, fetchDependencies deps ] >> pure emptyHookedBuildInfo , postBuild = \_ _ _ -> maybeCleanBuild } -- TODO custom directory?
src/Distribution/ATS/Compiler.hs view
@@ -70,3 +70,4 @@ void $ readCreateProcess ((proc "make" []) { cwd = Just cd, std_err = CreatePipe }) "" withCompiler "Installing" v void $ readCreateProcess ((proc "make" ["install"]) { cwd = Just cd, std_err = CreatePipe }) ""+ writeFile (cd ++ "/done") ""