YhcSource codeContentsIndex
PosCode
Synopsis
module Prim
type PosCode = [PosBinding]
type PosBinding = (Id, PosLambda)
data LambdaFlags
= LamFLNone
| LamFLIntro
| LamFLLambda
data PosLambda
= PosLambda Pos LambdaFlags [(Pos, Id)] [(Pos, Id)] PosExp
| PosPrimitive Pos Id
| PosForeign Pos Id Int String CallConv ImpExp
posExpApp :: Pos -> [PosExp] -> PosExp
posExpLet :: Pos -> [PosBinding] -> PosExp -> PosExp
data PosExp
= PosExpDict PosExp
| PosExpLet Bool Pos [PosBinding] PosExp
| PosExpCase Pos PosExp [PosAlt]
| PosExpApp Pos [PosExp]
| PosExpThunk Pos Bool [PosExp]
| PosExpFatBar Bool PosExp PosExp
| PosExpFail
| PosExpIf Pos Bool PosExp PosExp PosExp
| PosVar Pos Id
| PosCon Pos Id
| PosInt Pos Int
| PosChar Pos Int
| PosFloat Pos Float
| PosDouble Pos Double
| PosInteger Pos Integer
| PosString Pos String
| PosPrim Pos Prim Id
| PosExpLambda Pos Bool [(Pos, Id)] [(Pos, Id)] PosExp
data PosAlt
= PosAltCon Pos Id [(Pos, Id)] PosExp
| PosAltInt Pos Int Bool PosExp
isPosAtom :: PosExp -> Bool
class PlayPosExp a where
mapPosExp :: (PosExp -> PosExp) -> a -> a
mapPosExp_Binding :: PlayPosExp b => (PosExp -> PosExp) -> (a, b) -> (a, b)
data Pos
Documentation
module Prim
type PosCode = [PosBinding]
type PosBinding = (Id, PosLambda)
data LambdaFlags
Constructors
LamFLNone
LamFLIntro
LamFLLambda
show/hide Instances
data PosLambda
Constructors
PosLambda Pos LambdaFlags [(Pos, Id)] [(Pos, Id)] PosExp
PosPrimitive Pos Id
PosForeign Pos Id Int String CallConv ImpExp
show/hide Instances
posExpApp :: Pos -> [PosExp] -> PosExp
posExpLet :: Pos -> [PosBinding] -> PosExp -> PosExp
data PosExp
Constructors
PosExpDict PosExpHack to mark dictionaries
PosExpLet Bool Pos [PosBinding] PosExpTrue for recursive lets, false otherwise
PosExpCase Pos PosExp [PosAlt]
PosExpApp Pos [PosExp]
PosExpThunk Pos Bool [PosExp]True if this is really 'apply'
PosExpFatBar Bool PosExp PosExpTrue if fail can escape fatbar
PosExpFail
PosExpIf Pos Bool PosExp PosExp PosExpTrue if this is really a guard
PosVar Pos Id
PosCon Pos Id
PosInt Pos Int
PosChar Pos Int
PosFloat Pos Float
PosDouble Pos Double
PosInteger Pos Integer
PosString Pos String
PosPrim Pos Prim Id
PosExpLambda Pos Bool [(Pos, Id)] [(Pos, Id)] PosExpOnly temporary !!
show/hide Instances
data PosAlt
Constructors
PosAltCon Pos Id [(Pos, Id)] PosExpConstructor numbers, new variables, expression
PosAltInt Pos Int Bool PosExpIs the Int an Integer{True} or a Char{False}
show/hide Instances
isPosAtom :: PosExp -> Bool
class PlayPosExp a where
Methods
mapPosExp :: (PosExp -> PosExp) -> a -> a
show/hide Instances
mapPosExp_Binding :: PlayPosExp b => (PosExp -> PosExp) -> (a, b) -> (a, b)
data Pos
abstract type for storing the position of a syntactic construct in a file, that is, line and column number of both start and end positions.
show/hide Instances
Eq Pos
Ord Pos
Show Pos
Produced by Haddock version 0.8