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

Modulehaskell-src-exts-1.24.0Haskell98

Language.Haskell.Exts.SrcLoc

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

Synopsis
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.24.0 · Language.Haskell.Exts.SrcLoc
  • SrcInfo SrcSpanDefined in haskell-src-exts-1.24.0 · Language.Haskell.Exts.SrcLoc
  • SrcInfo SrcSpanInfoDefined in haskell-src-exts-1.24.0 · Language.Haskell.Exts.SrcLoc