parsnip-0: A fast, minimal parser
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Parsnip.Location

Synopsis

Documentation

location :: ByteString -> Int -> Location Source #

O(n) in the size of the input bytestring to actually use one. If used primarily for error location reporting, then this probably puts the burden in the right place.

data Location Source #

Deliberately lazy, so we don't bother to compute the exact line and column until forced.

Instances

Instances details
Show Location Source # 
Instance details

Defined in Text.Parsnip.Location

located :: Location -> String -> String Source #

Use this til we get a pretty printer in here