Portability | portable (template-haskell) |
---|---|
Stability | experimental |
Maintainer | Matt Morrow <mjm2002@gmail.com> |
Safe Haskell | None |
Language.Haskell.Meta.Syntax.Translate
Contents
Description
- class ToName a where
- toName :: a -> Name
- class ToLit a where
- toLit :: a -> Lit
- class ToType a where
- toType :: a -> Type
- class ToPat a where
- toPat :: a -> Pat
- class ToExp a where
- toExp :: a -> Exp
- class ToDecs a where
- toDecs :: a -> [Dec]
- class ToDec a where
- toDec :: a -> Dec
- class ToStmt a where
- toStmt :: a -> Stmt
- class ToLoc a where
- toLoc :: a -> Loc
- moduleName :: [Char]
- noTH :: Show e => String -> e -> a
- noTHyet :: Show e => String -> String -> e -> a
- todo :: Show e => String -> e -> a
- nonsense :: Show e => String -> String -> e -> a
- toFieldExp :: FieldUpdate -> FieldExp
- toMatch :: Alt -> Match
- toBody :: GuardedAlts -> Body
- toGuard :: GuardedAlt -> (Guard, Exp)
- toKind :: Kind -> Kind
- toTyVar :: TyVarBind -> TyVarBndr
- (.->.) :: Type -> Type -> Type
- toCxt :: Context -> Cxt
- foldAppT :: Type -> [Type] -> Type
- hsBindsToDecs :: Binds -> [Dec]
- hsBangTypeToStrictType :: BangType -> (Strict, Type)
- transAct :: Activation -> Phases
- qualConDeclToCon :: QualConDecl -> Con
- conDeclToCon :: ConDecl -> Con
- bangToVarStrictTypes :: [Name] -> BangType -> [VarStrictType]
- bangToStrictType :: BangType -> StrictType
- hsMatchesToFunD :: [Match] -> Dec
- hsMatchToClause :: Match -> Clause
- hsRhsToBody :: Rhs -> Body
- hsGuardedRhsToBody :: GuardedRhs -> Body
- hsStmtToGuard :: Stmt -> Guard
- collectVars :: Type -> [TyVarBndr]
- fixForall :: Type -> Type
Documentation
moduleName :: [Char]
noTH :: Show e => String -> e -> a
noTHyet :: Show e => String -> String -> e -> a
todo :: Show e => String -> e -> a
nonsense :: Show e => String -> String -> e -> a
ToName {String,HsName,Module,HsSpecialCon,HsQName}
ToLit HsLiteral
ToPat HsPat
ToExp HsExp
toFieldExp :: FieldUpdate -> FieldExp
toBody :: GuardedAlts -> Body
toGuard :: GuardedAlt -> (Guard, Exp)
ToLoc SrcLoc
ToType HsType
(.->.) :: Type -> Type -> Type
foldAppT :: Type -> [Type] -> Type
ToStmt HsStmt
ToDec HsDecl
hsBindsToDecs :: Binds -> [Dec]
hsBangTypeToStrictType :: BangType -> (Strict, Type)
transAct :: Activation -> Phases
qualConDeclToCon :: QualConDecl -> Con
conDeclToCon :: ConDecl -> Con
bangToVarStrictTypes :: [Name] -> BangType -> [VarStrictType]
bangToStrictType :: BangType -> StrictType
hsMatchesToFunD :: [Match] -> Dec
hsMatchToClause :: Match -> Clause
hsRhsToBody :: Rhs -> Body
hsGuardedRhsToBody :: GuardedRhs -> Body
hsStmtToGuard :: Stmt -> Guard
ToDecs InstDecl
ToDecs HsDecl HsBinds
collectVars :: Type -> [TyVarBndr]
fixForall :: Type -> Type