hi 0.0.7 → 0.0.8
raw patch · 3 files changed
+8/−6 lines, 3 files
Files
- hi.cabal +1/−1
- src/Hi.hs +6/−4
- src/Hi/Version.hs +1/−1
hi.cabal view
@@ -1,5 +1,5 @@ name: hi-version: 0.0.7+version: 0.0.8 synopsis: Generate scaffold for cabal project license: BSD3 license-file: LICENSE
src/Hi.hs view
@@ -55,11 +55,13 @@ -- -- 2. substitute arguments process :: [Option] -> Files -> Files-process options files = map go $ filter (isTemplate . fst) files+process options = map go where- isTemplate path = ".template" `isSuffixOf` path- go (path, content) = (rewritePath options path, substitute' content)- substitute' text = LT.unpack $ substitute (T.pack text) (context options)+ go (path, content) = if ".template" `isSuffixOf` path+ then (rewritePath' path, substitute' content)+ else (rewritePath' path, content)+ rewritePath' = rewritePath options+ substitute' text = LT.unpack $ substitute (T.pack text) (context options) -- | Return 'Context' obtained by given 'Options' context :: [Option] -> Context
src/Hi/Version.hs view
@@ -4,4 +4,4 @@ ) where version :: String-version = "0.0.7"+version = "0.0.8"