Copyright | 2013-2018 Kei Hibino 2015 Shohei Murayama |
---|---|
License | BSD3 |
Maintainer | ex8k.hibino@gmail.com |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe |
Language | Haskell2010 |
Language.Haskell.TH.Name.CamelCase
Description
This module provides camelcased Name
for Template Haskell
Synopsis
- newtype ConName = ConName {
- conName :: Name
- toConName :: String -> ConName
- newtype VarName = VarName {
- varName :: Name
- toVarName :: String -> VarName
- conCamelcaseName :: String -> ConName
- varCamelcaseName :: 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
.
Functions to generate haskell template from names
Make haskell templates from names.