Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- isTemplate :: FilePath -> Bool
- readTemplates :: FilePath -> IO Files
- untemplate :: FilePath -> FilePath
Documentation
isTemplate :: FilePath -> Bool Source
Determine if a given filepath is a template file based on its extension >>> isTemplate "Example.hs.template" True >>> isTemplate "NotATemplate.hs" False
untemplate :: FilePath -> FilePath Source
Remove ".template" from FilePath