HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduletoml-parser-2.0.2.0Haskell2010

Toml.Syntax.Position

This module provides the Position type for tracking locations in files while doing lexing and parsing for providing more useful error messages.

This module assumes 8 column wide tab stops.

Synopsis
datadata Located a

A value annotated with its text file position

Constructors

Instances5Functor, Foldable, Traversable, Read, Show
  • Functor LocatedDefined in toml-parser-2.0.2.0 · Toml.Syntax.Position

    Default instance

  • Foldable LocatedDefined in toml-parser-2.0.2.0 · Toml.Syntax.Position

    Default instance

  • Traversable LocatedDefined in toml-parser-2.0.2.0 · Toml.Syntax.Position

    Default instance

  • Read a => Read (Located a)Defined in toml-parser-2.0.2.0 · Toml.Syntax.Position

    Default instance

  • Show a => Show (Located a)Defined in toml-parser-2.0.2.0 · Toml.Syntax.Position

    Default instance

datadata Position

A position in a text file

Constructors

Instances4Eq, Ord, Read, Show
  • Eq PositionDefined in toml-parser-2.0.2.0 · Toml.Syntax.Position

    Default instance

  • Ord PositionDefined in toml-parser-2.0.2.0 · Toml.Syntax.Position

    Default instance

  • Read PositionDefined in toml-parser-2.0.2.0 · Toml.Syntax.Position

    Default instance

  • Show PositionDefined in toml-parser-2.0.2.0 · Toml.Syntax.Position

    Default instance

valuemove :: Char -> Position -> Position

Adjust a file position given a single character handling newlines and tabs. All other characters are considered to fill exactly one column.