Safe Haskell | None |
---|
- class HasSpanInfo a where
- spanInfo :: a -> SrcSpanInfo
- srcSpan :: HasSpanInfo x => x -> SrcSpan
- srcLoc :: HasSpanInfo x => x -> SrcLoc
- endLoc :: HasSpanInfo x => x -> SrcLoc
- textEndLoc :: String -> SrcLoc
- increaseSrcLoc :: String -> SrcLoc -> SrcLoc
- textSpan :: String -> SrcSpanInfo
- srcPairTextHead :: SrcLoc -> SrcLoc -> String -> String
- srcPairTextTail :: SrcLoc -> SrcLoc -> String -> String
- makeTree :: (HasSpanInfo a, Show a, Eq a, Ord a) => Set a -> Tree a
- tests :: Test
Documentation
class HasSpanInfo a whereSource
spanInfo :: a -> SrcSpanInfoSource
HasSpanInfo SrcSpanInfo | |
HasSpanInfo a => HasSpanInfo (Tree a) |
srcSpan :: HasSpanInfo x => x -> SrcSpanSource
srcLoc :: HasSpanInfo x => x -> SrcLocSource
endLoc :: HasSpanInfo x => x -> SrcLocSource
textEndLoc :: String -> SrcLocSource
increaseSrcLoc :: String -> SrcLoc -> SrcLocSource
Update a SrcLoc to move it from l past the string argument.
textSpan :: String -> SrcSpanInfoSource
srcPairTextHead :: SrcLoc -> SrcLoc -> String -> StringSource
Return the beginning portion of s which the span b thru e covers, assuming that the beginning of s is at position b - that is, that the prefix of s from (1,1) to b has already been removed.
srcPairTextTail :: SrcLoc -> SrcLoc -> String -> StringSource
Like srcPairTextHead, but returns the tail of s instead of the head.