| Copyright | 2013 Kei Hibino |
|---|---|
| License | BSD3 |
| Maintainer | ex8k.hibino@gmail.com |
| Stability | experimental |
| Portability | unknown |
| Safe Haskell | None |
| Language | Haskell2010 |
Language.Haskell.TH.Name.CamelCase
Contents
Description
This module provides camelcased Name for Template Haskell
- newtype ConName = ConName {}
- toConName :: String -> ConName
- newtype VarName = VarName {}
- toVarName :: String -> VarName
- conCamelcaseName :: String -> ConName
- varCamelcaseName :: String -> VarName
- varNameWithPrefix :: String -> String -> VarName
- toTypeCon :: ConName -> TypeQ
- toDataCon :: ConName -> ExpQ
- toVarExp :: VarName -> ExpQ
- toVarPat :: VarName -> PatQ
Types to wrap Name
Wrap Name to distinguish constructor names and variable names.
Type to wrap constructor's Name.
Type to wrap variable's Name.
Functions to make camel-cased names
Make camel-cased names.
conCamelcaseName :: String -> ConName Source
Make camel-cased constructor name from String.
varCamelcaseName :: String -> VarName Source
Make camel-cased variable name from String.
varNameWithPrefix :: String -> String -> VarName Source
Make camel-cased variable name with prefix like below.
name `varNamePrefix` prefix
Functions to generate haskell template from names
Make haskell templates from names.