Portability | GHC-only |
---|---|
Stability | provisional |
Maintainer | Fontaine@cs.uni-duesseldorf.de |
This module contains the datatype for sourcelocations and some utility functions.
Documentation
TokIdPos TokenId | |
TokIdSpan TokenId TokenId | |
TokSpan Token Token | |
TokPos Token | |
NoLocation | |
FixedLoc | |
|
getStartLine :: SrcLoc -> SrcLineSource
getStartCol :: SrcLoc -> SrcColSource
getTokenLen :: SrcLoc -> SrcOffsetSource
getEndLine :: SrcLoc -> SrcLineSource
computeEndPos :: Token -> AlexPosnSource
getEndTokenId :: SrcLoc -> TokenIdSource
srcLocFromTo :: SrcLoc -> SrcLoc -> SrcLocSource
srcLocBetween :: SrcLoc -> SrcLoc -> SrcLocSource