Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- isTemplate :: FilePath -> Bool
- readTemplates :: TemplateSource -> 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
readTemplates :: TemplateSource -> IO Files Source #
Read templates in given TemplateSource