trifecta-1.1: A modern parser combinator library with convenient diagnostics

Portabilitynon-portable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Infered

Text.Trifecta.Delta

Description

 

Synopsis

Documentation

nextTab :: Int64 -> Int64Source

Increment a column number to the next tabstop.

rewind :: Delta -> DeltaSource

Rewind a Delta to the beginning of the line.

near :: (HasDelta s, HasDelta t) => s -> t -> BoolSource

Should we show two things with a Delta on the same line?

column :: HasDelta t => t -> Int64Source

Retrieve the character offset within the current line from this Delta.

columnByte :: Delta -> Int64Source

Retrieve the byte offset within the current line from this Delta.