data Origin : Typerecord FileContext : TypeFC : Origin -> Bounds -> FileContext.bounds : FileContext -> Bounds.origin : FileContext -> OriginEq FileContextInterpolation FileContextShow FileContext.origin : FileContext -> Originorigin : FileContext -> Origin.bounds : FileContext -> Boundsbounds : FileContext -> BoundsfromBounded : Origin -> Bounded a -> (FileContext, a)virtualFromBounded : Bounded a -> (FileContext, a)toPosition : Nat -> ByteString -> PositionConverts an index into a bytestring to a position
(line and column) in the corresponding UTF-8 string.
printFC : FileContext -> Bounds -> List String -> List StringPretty prints a file context, highlighting the section in the given
list of source lines.
The `FileContext` describes the absolute context (file source and
bounds) where an error occurred, while `relBounds` is the error's
position relative to the given list of lines.
The above distinction is necessary when streaming large amounts of
data, where it is not feasible to keep the whole data in memory but
only the most recent chunk.