Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the annotation data types and a few auxiliary functions.
- data Annotation = Annotation {}
- type SourcePosition = (String, Int, Int)
- type ParameterizedStatementType = ([Type], [(String, Type)])
- getAnnotation :: Data a => a -> Annotation
- updateAnnotation :: Data a => (Annotation -> Annotation) -> a -> a
- emptyAnnotation :: Annotation
Annotation data types
data Annotation Source
Annotation type - one of these is attached to most of the data types used in the ast.
Annotation | |
|
type SourcePosition = (String, Int, Int) Source
Represents a source file position, usually set by the parser.
type ParameterizedStatementType = ([Type], [(String, Type)]) Source
Statement type is used for getting type information for a parameterized statement.
getAnnotation :: Data a => a -> Annotation Source
get the annotation for the root element of the tree passed
updateAnnotation :: Data a => (Annotation -> Annotation) -> a -> a Source
Update the first annotation in a tree using the function supplied
emptyAnnotation :: Annotation Source
An annotation value with no information.