ghc-6.12.3: The GHC API
Source code
Contents
Index
HsUtils
Documentation
mkHsPar
::
LHsExpr
id ->
LHsExpr
id
Source
mkSimpleMatch
:: [
LPat
id] ->
LHsExpr
id ->
LMatch
id
Source
unguardedGRHSs
::
LHsExpr
id ->
GRHSs
id
Source
unguardedRHS
::
LHsExpr
id -> [
LGRHS
id]
Source
mkHsAppTy
::
LHsType
name ->
LHsType
name ->
LHsType
name
Source
mkHsApp
::
LHsExpr
name ->
LHsExpr
name ->
LHsExpr
name
Source
nlHsTyApp
:: name -> [
Type
] ->
LHsExpr
name
Source
mkLHsWrap
::
HsWrapper
->
LHsExpr
id ->
LHsExpr
id
Source
mkHsWrap
::
HsWrapper
->
HsExpr
id ->
HsExpr
id
Source
mkHsWrapCoI
::
CoercionI
->
HsExpr
id ->
HsExpr
id
Source
coiToHsWrapper
::
CoercionI
->
HsWrapper
Source
mkHsLam
:: [
LPat
id] ->
LHsExpr
id ->
LHsExpr
id
Source
mkMatchGroup
:: [
LMatch
id] ->
MatchGroup
id
Source
mkHsDictLet
::
LHsBinds
Id
->
LHsExpr
Id
->
LHsExpr
Id
Source
mkHsConApp
::
DataCon
-> [
Type
] -> [
HsExpr
Id
] ->
LHsExpr
Id
Source
mkSimpleHsAlt
::
LPat
id ->
LHsExpr
id ->
LMatch
id
Source
mkHsIntegral
::
Integer
->
PostTcType
->
HsOverLit
id
Source
mkHsFractional
::
Rational
->
PostTcType
->
HsOverLit
id
Source
mkHsIsString
::
FastString
->
PostTcType
->
HsOverLit
id
Source
mkHsDo
::
HsStmtContext
Name
-> [
LStmt
id] ->
LHsExpr
id ->
HsExpr
id
Source
mkNPat
::
HsOverLit
id ->
Maybe
(
SyntaxExpr
id) ->
Pat
id
Source
mkNPlusKPat
::
Located
id ->
HsOverLit
id ->
Pat
id
Source
mkTransformStmt
:: [
LStmt
idL] ->
LHsExpr
idR ->
StmtLR
idL idR
Source
mkTransformByStmt
:: [
LStmt
idL] ->
LHsExpr
idR ->
LHsExpr
idR ->
StmtLR
idL idR
Source
mkGroupUsingStmt
:: [
LStmt
idL] ->
LHsExpr
idR ->
StmtLR
idL idR
Source
mkGroupByStmt
:: [
LStmt
idL] ->
LHsExpr
idR ->
StmtLR
idL idR
Source
mkGroupByUsingStmt
:: [
LStmt
idL] ->
LHsExpr
idR ->
LHsExpr
idR ->
StmtLR
idL idR
Source
mkExprStmt
::
LHsExpr
idR ->
StmtLR
idL idR
Source
mkBindStmt
::
LPat
idL ->
LHsExpr
idR ->
StmtLR
idL idR
Source
emptyRecStmt
::
StmtLR
idL idR
Source
mkRecStmt
:: [
LStmtLR
idL idR] ->
StmtLR
idL idR
Source
noRebindableInfo
::
Bool
Source
mkHsOpApp
::
LHsExpr
id -> id ->
LHsExpr
id ->
HsExpr
id
Source
mkHsSplice
::
LHsExpr
RdrName
->
HsSplice
RdrName
Source
unqualSplice
::
RdrName
Source
mkHsQuasiQuote
::
RdrName
->
SrcSpan
->
FastString
->
HsQuasiQuote
RdrName
Source
unqualQuasiQuote
::
RdrName
Source
mkHsString
::
String
->
HsLit
Source
userHsTyVarBndrs
:: [
Located
name] -> [
Located
(
HsTyVarBndr
name)]
Source
nlHsVar
:: id ->
LHsExpr
id
Source
nlHsLit
::
HsLit
->
LHsExpr
id
Source
nlVarPat
:: id ->
LPat
id
Source
nlLitPat
::
HsLit
->
LPat
id
Source
nlHsApp
::
LHsExpr
id ->
LHsExpr
id ->
LHsExpr
id
Source
nlHsIntLit
::
Integer
->
LHsExpr
id
Source
nlHsApps
:: id -> [
LHsExpr
id] ->
LHsExpr
id
Source
nlHsVarApps
:: id -> [id] ->
LHsExpr
id
Source
nlConVarPat
:: id -> [id] ->
LPat
id
Source
nlInfixConPat
:: id ->
LPat
id ->
LPat
id ->
LPat
id
Source
nlConPat
:: id -> [
LPat
id] ->
LPat
id
Source
nlNullaryConPat
:: id ->
LPat
id
Source
nlWildConPat
::
DataCon
->
LPat
RdrName
Source
nlWildPat
::
LPat
id
Source
nlHsDo
::
HsStmtContext
Name
-> [
LStmt
id] ->
LHsExpr
id ->
LHsExpr
id
Source
nlHsOpApp
::
LHsExpr
id -> id ->
LHsExpr
id ->
LHsExpr
id
Source
nlHsLam
::
LMatch
id ->
LHsExpr
id
Source
nlHsPar
::
LHsExpr
id ->
LHsExpr
id
Source
nlHsIf
::
LHsExpr
id ->
LHsExpr
id ->
LHsExpr
id ->
LHsExpr
id
Source
nlHsCase
::
LHsExpr
id -> [
LMatch
id] ->
LHsExpr
id
Source
nlList
:: [
LHsExpr
id] ->
LHsExpr
id
Source
nlHsAppTy
::
LHsType
name ->
LHsType
name ->
LHsType
name
Source
nlHsTyVar
:: name ->
LHsType
name
Source
nlHsFunTy
::
LHsType
name ->
LHsType
name ->
LHsType
name
Source
nlHsTyConApp
:: name -> [
LHsType
name] ->
LHsType
name
Source
mkLHsTupleExpr
:: [
LHsExpr
a] ->
LHsExpr
a
Source
mkLHsVarTuple
:: [a] ->
LHsExpr
a
Source
nlTuplePat
:: [
LPat
id] ->
Boxity
->
LPat
id
Source
missingTupArg
::
HsTupArg
a
Source
mkFunBind
::
Located
id -> [
LMatch
id] ->
HsBind
id
Source
mkVarBind
::
SrcSpan
-> id ->
LHsExpr
id ->
LHsBind
id
Source
mk_easy_FunBind
::
SrcSpan
-> id -> [
LPat
id] ->
LHsExpr
id ->
LHsBind
id
Source
mk_FunBind
::
SrcSpan
-> id -> [([
LPat
id],
LHsExpr
id)] ->
LHsBind
id
Source
mkMatch
:: [
LPat
id] ->
LHsExpr
id ->
HsLocalBinds
id ->
LMatch
id
Source
collectLocalBinders
::
HsLocalBindsLR
idL idR -> [
Located
idL]
Source
collectHsValBinders
::
HsValBindsLR
idL idR -> [
Located
idL]
Source
collectAcc
::
HsBindLR
idL idR -> [
Located
idL] -> [
Located
idL]
Source
collectHsBindBinders
::
LHsBindsLR
idL idR -> [idL]
Source
collectHsBindLocatedBinders
::
LHsBindsLR
idL idR -> [
Located
idL]
Source
collectLStmtsBinders
:: [
LStmtLR
idL idR] -> [
Located
idL]
Source
collectStmtsBinders
:: [
StmtLR
idL idR] -> [
Located
idL]
Source
collectLStmtBinders
::
LStmtLR
idL idR -> [
Located
idL]
Source
collectStmtBinders
::
StmtLR
idL idR -> [
Located
idL]
Source
collectPatBinders
::
LPat
a -> [a]
Source
collectLocatedPatBinders
::
LPat
a -> [
Located
a]
Source
collectPatsBinders
:: [
LPat
a] -> [a]
Source
collectLocatedPatsBinders
:: [
LPat
a] -> [
Located
a]
Source
collectl
::
LPat
name -> [
Located
name] -> [
Located
name]
Source
collectSigTysFromPats
:: [
InPat
name] -> [
LHsType
name]
Source
collectSigTysFromPat
::
InPat
name -> [
LHsType
name]
Source
collect_lpat
::
InPat
name -> [
LHsType
name] -> [
LHsType
name]
Source
collect_pat
::
Pat
name -> [
LHsType
name] -> [
LHsType
name]
Source
Produced by
Haddock
version 2.6.1