HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulepersistent-2.18.1.0Haskell2010

Database.Persist.Types.SourceSpan

  • 1 type
datadata SourceSpan
#

A pair of (start linecol, end linecol) coordinates. The end column will be one past the final character (i.e. the span (1,1)->(1,1) is zero characters long).

SourceSpans are 1-indexed in both lines and columns.

Conceptually identical to GHC's RealSourceSpan.

Instances5Eq, Ord, Read, Show, Lift
  • Eq SourceSpanDefined in persistent-2.18.1.0 · Database.Persist.Types.SourceSpan
  • Ord SourceSpanDefined in persistent-2.18.1.0 · Database.Persist.Types.SourceSpan
  • Read SourceSpanDefined in persistent-2.18.1.0 · Database.Persist.Types.SourceSpan
  • Show SourceSpanDefined in persistent-2.18.1.0 · Database.Persist.Types.SourceSpan
  • Lift SourceSpanDefined in persistent-2.18.1.0 · Database.Persist.Types.SourceSpan