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

Copyright(C) 2011-2014 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Trifecta.Delta

Description

 

Synopsis

Documentation

nextTab :: Int64 -> Int64 Source

Increment a column number to the next tabstop.

rewind :: Delta -> Delta Source

Rewind a Delta to the beginning of the line.

near :: (HasDelta s, HasDelta t) => s -> t -> Bool Source

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

column :: HasDelta t => t -> Int64 Source

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

columnByte :: Delta -> Int64 Source

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