persistent-2.17.0.0: Type-safe, multi-backend data serialization.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Database.Persist.Types.SourceSpan

Synopsis

Documentation

data SourceSpan Source #

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.

Since: 2.16.0.0

Constructors

SourceSpan 

Fields

Instances

Instances details
Read SourceSpan Source # 
Instance details

Defined in Database.Persist.Types.SourceSpan

Methods

readsPrec :: Int -> ReadS SourceSpan

readList :: ReadS [SourceSpan]

readPrec :: ReadPrec SourceSpan

readListPrec :: ReadPrec [SourceSpan]

Show SourceSpan Source # 
Instance details

Defined in Database.Persist.Types.SourceSpan

Methods

showsPrec :: Int -> SourceSpan -> ShowS

show :: SourceSpan -> String

showList :: [SourceSpan] -> ShowS

Eq SourceSpan Source # 
Instance details

Defined in Database.Persist.Types.SourceSpan

Methods

(==) :: SourceSpan -> SourceSpan -> Bool

(/=) :: SourceSpan -> SourceSpan -> Bool

Ord SourceSpan Source # 
Instance details

Defined in Database.Persist.Types.SourceSpan

Lift SourceSpan Source # 
Instance details

Defined in Database.Persist.Types.SourceSpan

Methods

lift :: Quote m => SourceSpan -> m Exp

liftTyped :: forall (m :: Type -> Type). Quote m => SourceSpan -> Code m SourceSpan