haskell-src-meta-0.6.0.14: Parse source to template-haskell abstract syntax.

Copyright(c) Matt Morrow 2008
LicenseBSD3
MaintainerMatt Morrow <mjm2002@gmail.com>
Stabilityexperimental
Portabilityportable (template-haskell)
Safe HaskellNone
LanguageHaskell98

Language.Haskell.Meta.Syntax.Translate

Contents

Description

 

Synopsis

Documentation

class ToLit a where Source #

Minimal complete definition

toLit

Methods

toLit :: a -> Lit Source #

class ToType a where Source #

Minimal complete definition

toType

Methods

toType :: a -> Type Source #

Instances

class ToPat a where Source #

Minimal complete definition

toPat

Methods

toPat :: a -> Pat Source #

Instances

ToPat Pat Source # 

Methods

toPat :: Pat -> Pat Source #

ToPat Lit Source # 

Methods

toPat :: Lit -> Pat Source #

ToPat a => ToPat [a] Source # 

Methods

toPat :: [a] -> Pat Source #

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

Methods

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

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

Methods

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

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

Methods

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

class ToExp a where Source #

Minimal complete definition

toExp

Methods

toExp :: a -> Exp Source #

Instances

ToExp QOp Source # 

Methods

toExp :: QOp -> Exp Source #

ToExp Exp Source # 

Methods

toExp :: Exp -> Exp Source #

ToExp Lit Source # 

Methods

toExp :: Lit -> Exp Source #

ToExp a => ToExp [a] Source # 

Methods

toExp :: [a] -> Exp Source #

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

Methods

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

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

Methods

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

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

Methods

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

class ToDecs a where Source #

Minimal complete definition

toDecs

Methods

toDecs :: a -> [Dec] Source #

Instances

ToDecs Decl Source # 

Methods

toDecs :: Decl -> [Dec] Source #

ToDecs Binds Source # 

Methods

toDecs :: Binds -> [Dec] Source #

ToDecs InstDecl Source # 

Methods

toDecs :: InstDecl -> [Dec] Source #

ToDecs a => ToDecs [a] Source # 

Methods

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

ToDecs (Maybe Binds) Source # 

Methods

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

class ToDec a where Source #

Minimal complete definition

toDec

Methods

toDec :: a -> Dec Source #

Instances

class ToStmt a where Source #

Minimal complete definition

toStmt

Methods

toStmt :: a -> Stmt Source #

Instances

class ToLoc a where Source #

Minimal complete definition

toLoc

Methods

toLoc :: a -> Loc Source #

Instances

class ToCxt a where Source #

Minimal complete definition

toCxt

Methods

toCxt :: a -> Cxt Source #

Instances

noTH :: Show e => String -> e -> a Source #

noTHyet :: Show e => String -> String -> e -> a Source #

todo :: Show e => String -> e -> a Source #

nonsense :: Show e => String -> String -> e -> a Source #

ToName {String,HsName,Module,HsSpecialCon,HsQName}

ToLit HsLiteral

ToPat HsPat

ToExp HsExp

ToLoc SrcLoc

ToType HsType

ToStmt HsStmt

ToDec HsDecl

ToDecs InstDecl

ToDecs HsDecl HsBinds