SourcePos

The abstract data type SourcePos represents source positions. It contains the name of the source (i.e. file name), a line number and a column number. SourcePos is an instance of the Show, Eq and Ord class.
The data type SourcePos represents source positions. It contains the name of the source file, a line number, and a column number. Source line and column positions change intensively during parsing, so we need to make them strict to avoid memory leaks.
The abstract data type SourcePos represents source positions. It contains the name of the source (i.e. file name), a line number and a column number. SourcePos is an instance of the Show, Eq and Ord class.
The data type SourcePos represents source positions. It contains the name of the source file, a line number, and a column number. Source line and column positions change intensively during parsing, so we need to make them strict to avoid memory leaks.
A source position containing filename, line, and column.
Adding source positions for blocks adds almost no overhead to parsing. Adding source positions for inlines has a small penalty. For many purposes it is enough to have source lines for blocks, so we offer the option.
Pretty-print a SourcePos.
Render a pair of source positions in human-readable form, only displaying the range of lines.
sourcePosition contains the current location of the source in the world coordinate system. Any 3-tuple of valid float values is allowed. Implementation behavior on encountering NaN and infinity is not defined. The initial position is (Vertex3 0 0 0).
Add attributes for source lines
Return the current source position. This function is not cheap, do not call it e.g. on matching of every token, that's a bad idea. Still you can use it to get SourcePos to attach to things that you parse. The function works under the assumption that we move in the input stream only forwards and never backwards, which is always true unless the user abuses the library.
Source position corresponding to beginning of pstateInput
Attach SourcePoses to items in a Traversable container given that there is a projection allowing us to get an offset per item. Items must be in ascending order with respect to their offsets.
Include source position attributes
returns True if the given position refers to an actual source file
source file and position