Safe Haskell | Safe-Inferred |
---|
- class HasSpanInfo a where
- spanInfo :: a -> SrcSpanInfo
- srcSpan :: HasSpanInfo x => x -> SrcSpan
- srcLoc :: HasSpanInfo x => x -> SrcLoc
- endLoc :: HasSpanInfo x => x -> SrcLoc
- textEndLoc :: FilePath -> String -> SrcLoc
- increaseSrcLoc :: String -> SrcLoc -> SrcLoc
- textSpan :: FilePath -> String -> SrcSpanInfo
- srcPairText :: SrcLoc -> SrcLoc -> String -> (String, String)
- makeTree :: (HasSpanInfo a, Show a, Eq a, Ord a) => Set a -> Tree a
Documentation
class HasSpanInfo a whereSource
spanInfo :: a -> SrcSpanInfoSource
srcSpan :: HasSpanInfo x => x -> SrcSpanSource
srcLoc :: HasSpanInfo x => x -> SrcLocSource
endLoc :: HasSpanInfo x => x -> SrcLocSource
textEndLoc :: FilePath -> String -> SrcLocSource
increaseSrcLoc :: String -> SrcLoc -> SrcLocSource
Update a SrcLoc to move it from l past the string argument.
textSpan :: FilePath -> String -> SrcSpanInfoSource