Safe Haskell | None |
---|
Source spans and locations.
- printEitherSpan :: FilePath -> EitherSpan -> Text
- printSourceSpan :: FilePath -> SourceSpan -> Text
- toSpanType :: TypeInfo -> SpanType
- makeEitherLoc :: FilePath -> EitherSpan -> Maybe Loc
- makeLoc :: FilePath -> SourceSpan -> Loc
Documentation
printEitherSpan :: FilePath -> EitherSpan -> TextSource
Print either a useful span or a useless one.
printSourceSpan :: FilePath -> SourceSpan -> TextSource
Print a span as Main.hs:1:23
toSpanType :: TypeInfo -> SpanTypeSource
makeEitherLoc :: FilePath -> EitherSpan -> Maybe LocSource
makeLoc :: FilePath -> SourceSpan -> LocSource