Safe Haskell | None |
---|
- data Scoped l = Scoped (NameInfo l) l
- data NameInfo l
- = GlobalValue (SymValueInfo OrigName)
- | GlobalType (SymTypeInfo OrigName)
- | LocalValue SrcLoc
- | TypeVar SrcLoc
- | ValueBinder
- | TypeBinder
- | Import Table
- | ImportPart Symbols
- | Export Symbols
- | None
- | ScopeError (Error l)
- annotate :: forall a l. (Resolvable (a (Scoped l)), Functor a, Typeable l) => Scope -> a l -> a (Scoped l)
Documentation
A pair of the name information and original annotation. Used as an annotation type for AST.
GlobalValue (SymValueInfo OrigName) | global value |
GlobalType (SymTypeInfo OrigName) | global type |
LocalValue SrcLoc | local value, and location where it is bound |
TypeVar SrcLoc | type variable, and location where it is bound |
ValueBinder | here the value name is bound |
TypeBinder | here the type name is defined |
Import Table |
|
ImportPart Symbols | part of an |
Export Symbols |
|
None | no annotation |
ScopeError (Error l) | scope error |