Cabal-3.2.1.0: A framework for packaging Haskell software
Safe Haskell None
Language Haskell2010

Distribution.Parsec.Position

Synopsis

Documentation

data Position Source #

1-indexed row and column positions in a file.

Constructors

Position ! Int ! Int

Instances

Instances details
Eq Position Source #
Instance details

Defined in Distribution.Parsec.Position

Ord Position Source #
Instance details

Defined in Distribution.Parsec.Position

Show Position Source #
Instance details

Defined in Distribution.Parsec.Position

Generic Position Source #
Instance details

Defined in Distribution.Parsec.Position

Binary Position Source #
Instance details

Defined in Distribution.Parsec.Position

NFData Position Source #
Instance details

Defined in Distribution.Parsec.Position

type Rep Position Source #
Instance details

Defined in Distribution.Parsec.Position

incPos :: Int -> Position -> Position Source #

Shift position by n columns to the right.

retPos :: Position -> Position Source #

Shift position to beginning of next row.