shake-cabal 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+9/−5 lines, 2 filesdep ~shakePVP ok
version bump matches the API change (PVP)
Dependency ranges changed: shake
API changes (from Hackage documentation)
Files
- shake-cabal.cabal +3/−2
- src/Development/Shake/Cabal.hs +6/−3
shake-cabal.cabal view
@@ -1,11 +1,12 @@ cabal-version: 1.18 name: shake-cabal-version: 0.1.0.0+version: 0.1.0.1 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2018 Vanessa McHale maintainer: vanessa.mchale@iohk.io author: Vanessa McHale+bug-reports: https://github.com/vmchale/atspkg/issues synopsis: Shake library for use with cabal description: A library for using [shake](http://hackage.haskell.org/package/shake) alongside [cabal](https://www.haskell.org/cabal/).@@ -31,7 +32,7 @@ ghc-options: -Wall build-depends: base >=4.3 && <5,- shake -any,+ shake >=0.14, Cabal >=2.2, directory -any, composition-prelude -any
src/Development/Shake/Cabal.hs view
@@ -14,7 +14,7 @@ import Control.Arrow import Control.Composition import Control.Monad-import Data.Foldable (toList)+import Data.Foldable (fold, toList) import Data.Maybe (catMaybes) import Development.Shake hiding (doesFileExist) import qualified Development.Shake as Shake@@ -42,10 +42,13 @@ -- | E.g. @x86_64-linux@ platform :: String-platform = arch ++ "-" ++ os+platform = arch ++ "-" ++ processOS os+ where processOS "darwin" = "osx"+ processOS x = x +-- FIXME: should also work with .x, .cpphs, .y files libraryToFiles :: Library -> [FilePath]-libraryToFiles lib = mconcat [cs, is, hs]+libraryToFiles lib = fold [cs, is, hs] where (cs, is) = (cSources &&& includes) $ libBuildInfo lib hs = (++ ".hs") . toFilePath <$> explicitLibModules lib