Language.Haskell.TH

# The monad and its operations

data Q a

runQ

## Administration: errors, locations and IO

reportError

reportWarning

report

recover

location

data Loc

runIO

## Querying the compiler

### Reify

reify

data Info

type InstanceDec

type ParentName

type Arity

type Unlifted

### Name lookup

lookupTypeName

lookupValueName

### Instance lookup

reifyInstances

isInstance

# Names

data Name

data NameSpace

## Constructing names

mkName

newName

## Deconstructing names

nameBase

nameModule

## Built-in names

tupleTypeName

tupleDataName

unboxedTupleTypeName

unboxedTupleDataName

# The algebraic data types

## Declarations

data Dec

data Con

data Clause

data Strict

data Foreign

data Callconv

data Safety

data Pragma

data Inline

data RuleMatch

data Phases

data RuleBndr

data FunDep

data FamFlavour

data Fixity

data FixityDirection

defaultFixity

maxPrecedence

## Expressions

data Exp

data Match

data Body

data Guard

data Stmt

data Range

data Lit

## Patterns

data Pat

type FieldExp

type FieldPat

## Types

data Type

data TyVarBndr

data TyLit

type Kind

type Cxt

data Pred

# Library functions

## Abbreviations

type InfoQ

type ExpQ

type DecQ

type DecsQ

type ConQ

type TypeQ

type TyLitQ

type CxtQ

type PredQ

type MatchQ

type ClauseQ

type BodyQ

type GuardQ

type StmtQ

type RangeQ

type StrictTypeQ

type VarStrictTypeQ

type PatQ

type FieldPatQ

type RuleBndrQ

## Constructors lifted to `Q`

### Literals

intPrimL

wordPrimL

floatPrimL

doublePrimL

integerL

rationalL

charL

stringL

stringPrimL

### Patterns

litP

varP

tupP

conP

uInfixP

parensP

infixP

tildeP

bangP

asP

wildP

recP

listP

sigP

viewP

fieldPat

### Pattern Guards

normalB

guardedB

normalG

normalGE

patG

patGE

match

clause

### Expressions

dyn

global

varE

conE

litE

appE

uInfixE

parensE

infixE

infixApp

sectionL

sectionR

lamE

lam1E

lamCaseE

tupE

condE

multiIfE

letE

caseE

appsE

listE

sigE

recConE

recUpdE

stringE

fieldExp

#### Ranges

fromE

fromThenE

fromToE

fromThenToE

#### Ranges with more indirection

arithSeqE

fromR

fromThenR

fromToR

fromThenToR

#### Statements

doE

compE

bindS

letS

noBindS

parS

### Types

forallT

varT

conT

appT

arrowT

listT

tupleT

sigT

litT

promotedT

promotedTupleT

promotedNilT

promotedConsT

#### Type literals

numTyLit

strTyLit

#### Strictness

isStrict

notStrict

strictType

varStrictType

#### Class Contexts

cxt

classP

equalP

normalC

recC

infixC

forallC

### Kinds

varK

conK

tupleK

arrowK

listK

appK

starK

constraintK

### Top Level Declarations

#### Data

valD

funD

tySynD

dataD

newtypeD

#### Class

classD

instanceD

sigD

#### Type Family / Data Family

familyNoKindD

familyKindD

dataInstD

newtypeInstD

tySynInstD

typeFam

dataFam

#### Foreign Function Interface (FFI)

cCall

stdCall

unsafe

safe

forImpD

#### Pragmas

ruleVar

typedRuleVar

pragInlD

pragSpecD

pragSpecInlD

pragSpecInstD

pragRuleD

# Pretty-printer

class Ppr a

pprint

pprExp

pprLit

pprPat

pprParendType