shake-ext 1.4.0.1 → 1.4.0.2
raw patch · 2 files changed
+21/−1 lines, 2 filesPVP: minor bump suggested
API additions: PVP suggests at least a minor version bump
API changes (from Hackage documentation)
+ Development.Shake.Check: autoconf :: (MonadIO m) => m Bool
+ Development.Shake.Check: checkExecutable :: (MonadIO m) => String -> m Bool
+ Development.Shake.Check: pandoc :: (MonadIO m) => m Bool
Files
- shake-ext.cabal +2/−1
- src/Development/Shake/Check.hs +19/−0
shake-ext.cabal view
@@ -1,5 +1,5 @@ name: shake-ext-version: 1.4.0.1+version: 1.4.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 source files with [shake](http://shakebuild.com/). homepage: https://hub.darcs.net/vmchale/shake-ext@@ -24,6 +24,7 @@ exposed-modules: Development.Shake.FileDetect , Development.Shake.Linters , Development.Shake.Man+ , Development.Shake.Check build-depends: base >= 4.10 && < 5 , shake , language-ats >= 0.1.1.3
+ src/Development/Shake/Check.hs view
@@ -0,0 +1,19 @@+-- | Functions in this module check for the presence of various build tools.+module Development.Shake.Check ( checkExecutable+ -- * Helper functions for specific programs+ , pandoc+ , autoconf+ ) where++import Control.Monad.IO.Class+import Data.Maybe (isJust)+import System.Directory (findExecutable)++checkExecutable :: (MonadIO m) => String -> m Bool+checkExecutable = fmap isJust . liftIO . findExecutable++pandoc :: (MonadIO m) => m Bool+pandoc = checkExecutable "pandoc"++autoconf :: (MonadIO m) => m Bool+autoconf = checkExecutable "autoconf"