hscaffold 0.4.1.0 → 0.4.2.0
raw patch · 2 files changed
+7/−8 lines, 2 files
Files
hscaffold.cabal view
@@ -3,7 +3,7 @@ -- see: https://github.com/sol/hpack name: hscaffold-version: 0.4.1.0+version: 0.4.2.0 synopsis: Very simple file/directory structure scaffolding writer monad EDSL description: See our README on GitHub at <https://github.com/yamadapc/hscaffold> homepage: https://github.com/yamadapc/hscaffold#readme
src/Hscaffold/Interpreter/Common.hs view
@@ -4,11 +4,10 @@ -- | Very simple helper, if the second argument is absolute, returns it, -- otherwise, return it relative to the first argument-mkActionPath :: FilePath- ->- -- ^ The root- FilePath- ->- -- ^ A filepath- FilePath+mkActionPath+ :: FilePath+ -- ^ The root+ -> FilePath+ -- ^ A filepath+ -> FilePath mkActionPath root fp = if isAbsolute fp then fp else root </> fp