Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Database.Persist.Types.SourceSpan
Synopsis
- data SourceSpan = SourceSpan {
- spanFile :: !Text
- spanStartLine :: !Int
- spanStartCol :: !Int
- spanEndLine :: !Int
- spanEndCol :: !Int
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
|