haskell-src-meta-0.8.7.1: Parse source to template-haskell abstract syntax.
Copyright(c) Matt Morrow 2008
LicenseBSD3
MaintainerMatt Morrow <mjm2002@gmail.com>
Stabilityexperimental
Portabilityportable (template-haskell)
Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Meta.Syntax.Translate

Description

 

Documentation

class ToMaybeKind a where Source #

Methods

toMaybeKind :: a -> Maybe Kind Source #

Instances

Instances details
ToMaybeKind a => ToMaybeKind (Maybe a) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

ToMaybeKind (ResultSig l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

class ToTyVars a where Source #

Methods

toTyVars :: a -> [TyVarBndr_ ()] Source #

Instances

Instances details
ToTyVars a => ToTyVars [a] Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toTyVars :: [a] -> [TyVarBndr_ ()] Source #

ToTyVars a => ToTyVars (Maybe a) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toTyVars :: Maybe a -> [TyVarBndr_ ()] Source #

ToTyVars (DeclHead l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toTyVars :: DeclHead l -> [TyVarBndr_ ()] Source #

ToTyVars (TyVarBind l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toTyVars :: TyVarBind l -> [TyVarBndr_ ()] Source #

class ToPred a where Source #

Methods

toPred :: a -> Pred Source #

Instances

Instances details
ToPred (Asst l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toPred :: Asst l -> Pred Source #

class ToCxt a where Source #

Methods

toCxt :: a -> Cxt Source #

Instances

Instances details
ToCxt a => ToCxt (Maybe a) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toCxt :: Maybe a -> Cxt Source #

ToCxt (InstRule l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toCxt :: InstRule l -> Cxt Source #

ToCxt (Context l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toCxt :: Context l -> Cxt Source #

class ToLoc a where Source #

Methods

toLoc :: a -> Loc Source #

Instances

Instances details
ToLoc SrcLoc Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toLoc :: SrcLoc -> Loc Source #

class ToStmt a where Source #

Methods

toStmt :: a -> Stmt Source #

Instances

Instances details
ToStmt (Stmt l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toStmt :: Stmt l -> Stmt0 Source #

class ToDec a where Source #

Methods

toDec :: a -> Dec Source #

Instances

Instances details
ToDec (Decl l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toDec :: Decl l -> Dec Source #

class ToDecs a where Source #

Methods

toDecs :: a -> [Dec] Source #

Instances

Instances details
ToDecs a => ToDecs [a] Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toDecs :: [a] -> [Dec] Source #

ToDecs a => ToDecs (Maybe a) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toDecs :: Maybe a -> [Dec] Source #

ToDecs (Decl l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toDecs :: Decl l -> [Dec] Source #

ToDecs (Binds l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toDecs :: Binds l -> [Dec] Source #

ToDecs (ClassDecl l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toDecs :: ClassDecl l -> [Dec] Source #

ToDecs (InstDecl l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toDecs :: InstDecl l -> [Dec] Source #

class ToExp a where Source #

Methods

toExp :: a -> Exp Source #

Instances

Instances details
ToExp Lit Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toExp :: Lit -> Exp Source #

ToExp a => ToExp [a] Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toExp :: [a] -> Exp Source #

ToExp (QOp l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toExp :: QOp l -> Exp Source #

ToExp (Exp l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toExp :: Exp l -> Exp0 Source #

(ToExp a, ToExp b) => ToExp (a, b) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toExp :: (a, b) -> Exp Source #

(ToExp a, ToExp b, ToExp c) => ToExp (a, b, c) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toExp :: (a, b, c) -> Exp Source #

(ToExp a, ToExp b, ToExp c, ToExp d) => ToExp (a, b, c, d) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toExp :: (a, b, c, d) -> Exp Source #

class ToPat a where Source #

Methods

toPat :: a -> Pat Source #

Instances

Instances details
ToPat Lit Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toPat :: Lit -> Pat Source #

ToPat a => ToPat [a] Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toPat :: [a] -> Pat Source #

ToPat (Pat l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toPat :: Pat l -> Pat0 Source #

(ToPat a, ToPat b) => ToPat (a, b) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toPat :: (a, b) -> Pat Source #

(ToPat a, ToPat b, ToPat c) => ToPat (a, b, c) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toPat :: (a, b, c) -> Pat Source #

(ToPat a, ToPat b, ToPat c, ToPat d) => ToPat (a, b, c, d) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toPat :: (a, b, c, d) -> Pat Source #

class ToType a where Source #

Methods

toType :: a -> Type Source #

Instances

Instances details
ToType (QName l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toType :: QName l -> Type Source #

ToType (InstRule l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toType :: InstRule l -> Type Source #

ToType (InstHead l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toType :: InstHead l -> Type Source #

ToType (Type l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toType :: Type l -> Type0 Source #

class ToLit a where Source #

Methods

toLit :: a -> Lit Source #

Instances

Instances details
ToLit Char Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toLit :: Char -> Lit Source #

ToLit Double Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toLit :: Double -> Lit Source #

ToLit Float Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toLit :: Float -> Lit Source #

ToLit Int Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toLit :: Int -> Lit Source #

ToLit Integer Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toLit :: Integer -> Lit Source #

ToLit String Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toLit :: String -> Lit Source #

ToLit (Literal l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toLit :: Literal l -> Lit Source #

class ToNames a where Source #

Methods

toNames :: a -> [Name] Source #

Instances

Instances details
ToNames a => ToNames (Maybe a) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toNames :: Maybe a -> [Name] Source #

ToNames (InstRule l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toNames :: InstRule l -> [Name] Source #

ToNames (InstHead l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toNames :: InstHead l -> [Name] Source #

ToNames (Deriving l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toNames :: Deriving l -> [Name] Source #

class ToName a where Source #

Methods

toName :: a -> Name Source #

Instances

Instances details
ToName Name Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toName :: Name -> Name Source #

ToName String Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toName :: String -> Name Source #

ToName (SpecialCon l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toName :: SpecialCon l -> Name Source #

ToName (QName l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toName :: QName l -> Name Source #

ToName (Name l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toName :: Name l -> Name0 Source #

ToName (Op l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toName :: Op l -> Name Source #

ToName (DeclHead l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toName :: DeclHead l -> Name Source #

ToName (MaybePromotedName l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

ToName (TyVarBind l) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toName :: TyVarBind l -> Name Source #

ToName (TyVarBndr_ flag) Source # 
Instance details

Defined in Language.Haskell.Meta.Syntax.Translate

Methods

toName :: TyVarBndr_ flag -> Name Source #

noTH :: (Functor f, Show (f ())) => String -> f e -> a Source #

noTHyet :: (Functor f, Show (f ())) => String -> String -> f e -> a Source #

todo :: (Functor f, Show (f ())) => String -> f e -> a Source #

nonsense :: (Functor f, Show (f ())) => String -> String -> f e -> a Source #

toTupEl :: ToExp a => a -> Maybe Exp Source #