 | haskell-src-exts-1.3.5: Manipulating Haskell source: abstract syntax, lexer, parser, and pretty-printer | Source code | Contents | Index |
|
Language.Haskell.Exts.SrcLoc | |
|
|
Description |
This module defines various data types representing source location
information, of varying degree of preciseness.
|
|
Synopsis |
|
|
|
Documentation |
|
|
A single position in the source.
| Constructors | | Instances | |
|
|
|
A portion of the source, spanning one or more lines and zero or more columns.
| Constructors | SrcSpan | | srcSpanFilename :: String | | srcSpanStartLine :: Int | | srcSpanStartColumn :: Int | | srcSpanEndLine :: Int | | srcSpanEndColumn :: Int | |
|
| Instances | |
|
|
|
Returns srcSpanStartLine and srcSpanStartColumn in a pair.
|
|
|
Returns srcSpanEndLine and srcSpanEndColumn in a pair.
|
|
|
Combine two locations in the source to denote a span.
|
|
|
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 are given in the
order they appear in the source.
|
|
|
Test if a given span starts and ends at the same location.
|
|
|
An entity located in the source.
| Constructors | | Instances | |
|
|
|
A portion of the source, extended with information on the position of entities within the span.
| Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Methods | | | Instances | |
|
|
Produced by Haddock version 2.6.0 |