Copyright | (c) 2017 Patrick Champion |
---|---|
License | see LICENSE file |
Maintainer | chlablak@gmail.com |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
- class Template context where
- mergeContext :: (Template c1, Template c2) => c1 -> c2 -> StringTemplate String -> StringTemplate String
Documentation
class Template context where Source #
Type class for Templatable structure
attributes :: context -> StringTemplate String -> StringTemplate String Source #
Put the context into StringTemplate attributes
compile :: context -> String -> String Source #
Compile a template with a given context
Template DfaContext Source # | Template instance for DfaContext |
Template LrContext Source # | Template instance for LrContext |
Template (StringTemplate String -> StringTemplate String) Source # | Allow to use |
mergeContext :: (Template c1, Template c2) => c1 -> c2 -> StringTemplate String -> StringTemplate String Source #
Merge two contexts together