|
| Language.C.Data.Position | | Portability | ghc | | Stability | experimental | | Maintainer | benedikt.huber@gmail.com |
|
|
|
| Description |
| Source code position
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| uniform representation of source file positions; the order of the arguments
is important as it leads to the desired ordering of source positions
| | Constructors | |
|
|
|
| initialize a Position to the start of the translation unit starting in the given file
|
|
|
| get the source file of the specified position. Fails unless isSourcePos pos.
|
|
|
| get the line number of the specified position. Fails unless isSourcePos pos
|
|
|
| get the column of the specified position. Fails unless isSourcePos pos
|
|
|
| returns True if the given position refers to an actual source file
|
|
|
| no position (for unknown position information)
|
|
|
|
|
| position attached to built-in objects
|
|
|
| returns True if the given position refers to a builtin definition
|
|
|
| position used for internal errors
|
|
|
| returns True if the given position is internal
|
|
|
| advance column
|
|
|
| advance column to next tab positions (tabs are considered to be at every 8th column)
|
|
|
| advance to next line
|
|
|
| adjust position: change file and line number, reseting column to 1. This is usually
used for #LINE pragmas.
|
|
|
| class of type which aggregate a source code location
| | | Methods | |
|
|
| Produced by Haddock version 2.6.0 |