shake-ext 0.2.0.1 → 0.2.0.2
raw patch · 4 files changed
+19/−7 lines, 4 filesdep +language-atsdep −ats-formatdep ~basePVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
Dependencies added: language-ats
Dependencies removed: ats-format
Dependency ranges changed: base
API changes (from Hackage documentation)
+ Development.Shake.ATS: cleanATS :: Rules ()
Files
- README.md +1/−3
- cabal.project.local +4/−0
- shake-ext.cabal +4/−4
- src/Development/Shake/ATS.hs +10/−0
README.md view
@@ -1,6 +1,4 @@ # shake-ext Several extensions to [shake](http://shakebuild.com/), including facilities for-building ATS and Haskell.--This package is very much experimental at the moment.+building ATS and Haskell, as well as various linters.
cabal.project.local view
@@ -4,3 +4,7 @@ documentation: True haddock-hoogle: True haddock-internal: True++program-options+ happy-options: -gcsa+ alex-options: -g
shake-ext.cabal view
@@ -1,7 +1,7 @@ name: shake-ext-version: 0.2.0.1+version: 0.2.0.2 synopsis: Helper functions for linting with shake -description: This package provides several linters out of the box, as well as functionality for building ATS projects with [shake](http://shakebuild.com/).+description: This package provides several linters out of the box, as well as functionality for building ATS source files with [shake](http://shakebuild.com/). homepage: https://hub.darcs.net/vmchale/shake-ext license: BSD3 license-file: LICENSE@@ -25,9 +25,9 @@ exposed-modules: Development.Shake.FileDetect , Development.Shake.Linters , Development.Shake.ATS- build-depends: base >= 4.8 && < 5+ build-depends: base >= 4.10 && < 5 , shake- , ats-format >= 0.2.0.2+ , language-ats default-language: Haskell2010 if flag(development) ghc-options: -Werror
src/Development/Shake/ATS.hs view
@@ -2,6 +2,7 @@ module Development.Shake.ATS ( cgen , cgenPretty+ , cleanATS ) where import Control.Monad (filterM)@@ -14,6 +15,15 @@ atsCommand :: CmdResult r => String -> String -> Action r atsCommand sourceFile out = command atsArgs "patsopt" ["--output", out, "-dd", sourceFile, "-cc"] where atsArgs = [EchoStderr False, AddEnv "PATSHOME" "/usr/local/lib/ats2-postiats-0.3.8"]++cleanATS :: Rules ()+cleanATS =++ "clean" ~> do+ cmd_ ["sn", "c"]+ removeFilesAfter "." ["//*.c", "//tags"]+ removeFilesAfter ".shake" ["//*"]+ removeFilesAfter "ats-deps" ["//*"] -- | This provides rules for generating C code from ATS source files in the -- @ats-src@ directory.