| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
ReWire.HSE.SrcLoc
Contents
Description
The boundary between haskell-src-exts source locations and ReWire's native
Annote/Span. It lives in the HSE layer so the base annotation module
(ReWire.Annotation) and the diagnostics renderer (ReWire.Error) carry no
haskell-src-exts dependency: only modules that actually manipulate the
haskell-src-exts AST import this conversion glue.
Orphan instances
| SrcInfo Annote Source # | |
Methods toSrcInfo :: SrcLoc -> [SrcSpan] -> SrcLoc -> Annote fromSrcInfo :: SrcSpanInfo -> Annote getPointLoc :: Annote -> SrcLoc startColumn :: Annote -> Int | |
| Annotation SrcLoc Source # | |
| Annotation SrcSpanInfo Source # | Build an annotation from a haskell-src-exts source span. |