| Copyright | (c) Matt Morrow 2008 |
|---|---|
| License | BSD3 |
| Maintainer | Matt Morrow <mjm2002@gmail.com> |
| Stability | experimental |
| Portability | portable (template-haskell) |
| Safe Haskell | None |
| Language | Haskell98 |
Language.Haskell.Meta.Syntax.Translate
Description
Documentation
class ToDerivClauses a where Source #
Methods
toDerivClauses :: a -> [DerivClause] Source #
Instances
| ToDerivClauses a => ToDerivClauses [a] Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate Methods toDerivClauses :: [a] -> [DerivClause] Source # | |
| ToDerivClauses a => ToDerivClauses (Maybe a) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate Methods toDerivClauses :: Maybe a -> [DerivClause] Source # | |
| ToDerivClauses (Deriving l) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate Methods toDerivClauses :: Deriving l -> [DerivClause] Source # | |
class ToInjectivityAnn a where Source #
Methods
toInjectivityAnn :: a -> InjectivityAnn Source #
Instances
| ToInjectivityAnn (InjectivityInfo l) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate Methods toInjectivityAnn :: InjectivityInfo l -> InjectivityAnn Source # | |
class ToMaybeKind a where Source #
Methods
toMaybeKind :: a -> Maybe Kind Source #
Instances
| ToMaybeKind a => ToMaybeKind (Maybe a) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate | |
| ToMaybeKind (ResultSig l) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate | |
Instances
| ToExp Lit Source # | |
| ToExp a => ToExp [a] Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate | |
| ToExp (QOp l) Source # | |
| ToExp (Exp l) Source # | |
| (ToExp a, ToExp b) => ToExp (a, b) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate | |
| (ToExp a, ToExp b, ToExp c) => ToExp (a, b, c) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate | |
| (ToExp a, ToExp b, ToExp c, ToExp d) => ToExp (a, b, c, d) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate | |
Instances
| ToPat Lit Source # | |
| ToPat a => ToPat [a] Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate | |
| ToPat (Pat l) Source # | |
| (ToPat a, ToPat b) => ToPat (a, b) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate | |
| (ToPat a, ToPat b, ToPat c) => ToPat (a, b, c) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate | |
| (ToPat a, ToPat b, ToPat c, ToPat d) => ToPat (a, b, c, d) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate | |
Instances
| ToName Name Source # | |
| ToName String Source # | |
| ToName TyVarBndr Source # | |
| ToName (SpecialCon l) Source # | |
Defined in Language.Haskell.Meta.Syntax.Translate Methods toName :: SpecialCon l -> Name Source # | |
| ToName (QName l) Source # | |
| ToName (Name l) Source # | |
| ToName (Op l) Source # | |
| ToName (DeclHead l) Source # | |
| ToName (TyVarBind l) Source # | |
moduleName :: [Char] Source #
toFieldExp :: FieldUpdate l -> FieldExp Source #
toStrictType :: Type l -> StrictType Source #
toDerivStrategy :: DerivStrategy l -> DerivStrategy Source #
qualConDeclToCon :: QualConDecl l -> Con Source #
conDeclToCon :: ConDecl l -> Con Source #
hsMatchesToFunD :: [Match l] -> Dec Source #
hsMatchToClause :: Match l -> Clause Source #
hsRhsToBody :: Rhs l -> Body Source #
hsGuardedRhsToBody :: GuardedRhs l -> Body Source #
hsStmtToGuard :: Stmt l -> Guard Source #