HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulehaskell-src-exts-1.23.1Haskell98

Language.Haskell.Exts.SrcLoc

This module defines various data types representing source location information, of varying degree of preciseness.

  • 4 types
  • 1 class
  • 18 values
datadata SrcLoc
#

A single position in the source.

Instances8Eq, Data, Ord, Show, Generic, Pretty, …
datadata SrcSpan
#

A portion of the source, spanning one or more lines and zero or more columns.

Instances8Eq, Data, Ord, Show, Generic, Pretty, …

Merge two source spans into a single span from the start of the first to the end of the second. Assumes that the two spans relate to the same source file.

datadata Loc a
#

An entity located in the source.

Constructors

Instances5Eq, Ord, Show, Generic, Rep
datadata SrcSpanInfo
#

A portion of the source, extended with information on the position of entities within the span.

Instances18Eq, Data, Ord, Show, Generic, SrcInfo, …
classclass SrcInfo si where
#

A class to work over all kinds of source location information.

Methods

Instances3SrcInfo
  • SrcInfo SrcLocDefined in haskell-src-exts-1.23.1 · Language.Haskell.Exts.SrcLoc
  • SrcInfo SrcSpanDefined in haskell-src-exts-1.23.1 · Language.Haskell.Exts.SrcLoc
  • SrcInfo SrcSpanInfoDefined in haskell-src-exts-1.23.1 · Language.Haskell.Exts.SrcLoc