- data SrcLoc = SrcLoc {}
- data SrcSpan = SrcSpan {}
- mkSrcSpan :: SrcLoc -> SrcLoc -> SrcSpan
- mergeSrcSpan :: SrcSpan -> SrcSpan -> SrcSpan
- data Loc a = Loc {}
- data SrcSpanInfo = SrcSpanInfo {
- srcInfoSpan :: SrcSpan
- explLayout :: Bool
- srcInfoPoints :: [SrcSpan]
- noInfoSpan :: SrcSpan -> SrcSpanInfo
- nIS :: SrcSpan -> SrcSpanInfo
- pointInfoSpan :: SrcSpan -> SrcSpanInfo
- pIS :: SrcSpan -> SrcSpanInfo
- infoSpan :: SrcSpan -> [SrcSpan] -> SrcSpanInfo
- iS :: SrcSpan -> [SrcSpan] -> SrcSpanInfo
- combSpanInfo :: SrcSpanInfo -> SrcSpanInfo -> SrcSpanInfo
- (<++>) :: SrcSpanInfo -> SrcSpanInfo -> SrcSpanInfo
- (<+?>) :: SrcSpanInfo -> Maybe SrcSpanInfo -> SrcSpanInfo
- (<?+>) :: Maybe SrcSpanInfo -> SrcSpanInfo -> SrcSpanInfo
- (<**) :: SrcSpanInfo -> [SrcSpan] -> SrcSpanInfo
- (<??) :: SrcSpanInfo -> Bool -> SrcSpanInfo
- (<^^>) :: SrcSpan -> SrcSpan -> SrcSpanInfo
- class SrcInfo si where
- toSrcInfo :: SrcLoc -> Bool -> [SrcSpan] -> SrcLoc -> si
- fromSrcInfo :: SrcSpanInfo -> si
- getPointLoc :: si -> SrcLoc
- fileName :: si -> String
- startLine :: si -> Int
- startColumn :: si -> Int
Documentation
A single position in the source.
A portion of the source, spanning one or more lines and zero or more columns.
mergeSrcSpan :: SrcSpan -> SrcSpan -> SrcSpanSource
Merge two source spans into a single span from the start of the first to the end of the second. Assumes that the two spans are given in the order they appear in the source.
An entity located in the source.
data SrcSpanInfo Source
A portion of the source, extended with information on the position of entities within the span.
SrcSpanInfo | |
|
nIS :: SrcSpan -> SrcSpanInfoSource
pIS :: SrcSpan -> SrcSpanInfoSource
infoSpan :: SrcSpan -> [SrcSpan] -> SrcSpanInfoSource
iS :: SrcSpan -> [SrcSpan] -> SrcSpanInfoSource
(<++>) :: SrcSpanInfo -> SrcSpanInfo -> SrcSpanInfoSource
(<+?>) :: SrcSpanInfo -> Maybe SrcSpanInfo -> SrcSpanInfoSource
(<?+>) :: Maybe SrcSpanInfo -> SrcSpanInfo -> SrcSpanInfoSource
(<**) :: SrcSpanInfo -> [SrcSpan] -> SrcSpanInfoSource
(<??) :: SrcSpanInfo -> Bool -> SrcSpanInfoSource
(<^^>) :: SrcSpan -> SrcSpan -> SrcSpanInfoSource