packages feed

shake-path (empty) → 0.0.0.0

raw patch · 4 files changed

+84/−0 lines, 4 filesdep +basedep +pathdep +path-iosetup-changed

Dependencies added: base, path, path-io, shake

Files

+ LICENSE view
@@ -0,0 +1,21 @@+The MIT License (MIT)++Copyright (c) 2017 Tom Sydney Kerckhove++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ shake-path.cabal view
@@ -0,0 +1,25 @@+name: shake-path+synopsis: path alternatives to shake functions+description: path alternatives to shake functions+version: 0.0.0.0+cabal-version: >=1.10+build-type: Simple+license: MIT+license-file: LICENSE+copyright: Copyright: (c) 2017 Tom Sydney Kerckhove+maintainer: syd.kerckhove@gmail.com+homepage: http://cs-syd.eu+category: CsSyd+author: Tom Sydney Kerckhove++library+    exposed-modules:+        Development.Shake.Path+    build-depends:+        base >=4.9 && <=5,+        shake >= 0.15 && < 0.16,+        path >= 0.5 && < 0.6,+        path-io >= 1.2 && < 1.3+    default-language: Haskell2010+    hs-source-dirs: src/+    ghc-options: -Wall
+ src/Development/Shake/Path.hs view
@@ -0,0 +1,36 @@+module Development.Shake.Path+    ( getHashedShakeVersionP+    , needP+    , wantP+    , ($%>)+    , ($&%>)+    , orderOnlyP+    , cmd+    , liftIO+    , CmdOption(..)+    , module Path+    , module Path.IO+    ) where++import Development.Shake++import Path+import Path.IO++getHashedShakeVersionP :: [Path r File] -> IO String+getHashedShakeVersionP = getHashedShakeVersion . map toFilePath++needP :: [Path r File] -> Action ()+needP = need . map toFilePath++wantP :: [Path r File] -> Rules ()+wantP = want . map toFilePath++($%>) :: Path r File -> Action () -> Rules ()+p $%> a = toFilePath p %> const a++($&%>) :: [Path r File] -> Action () -> Rules ()+ps $&%> a = map toFilePath ps &%> const a++orderOnlyP :: [Path r File] -> Action ()+orderOnlyP = orderOnly . map toFilePath