Kawaii-Parser-0.0.0: A simple parsing library.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Parser.Line_and_char

Description

  • Locations of elements in a text file
  • Writing locations
Synopsis

Documentation

data L t Source #

Add a location to any type.

Constructors

L Line_and_char t 

Instances

Instances details
Show t => Show (L t) Source # 
Instance details

Defined in Parser.Line_and_char

Methods

showsPrec :: Int -> L t -> ShowS #

show :: L t -> String #

showList :: [L t] -> ShowS #

init_line_and_char :: Line_and_char Source #

First line, first character.

next_char :: Line_and_char -> Line_and_char Source #

Move one character to the right.

next_line :: Line_and_char -> Line_and_char Source #

Move to the beginning of the next line.

write_line_and_char :: Line_and_char -> String Source #

Write the location with a colon between line and character number.