SourcePos package:hledger-lib

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.
Render a pair of source positions in human-readable form, only displaying the range of lines.
Pretty-print a SourcePos.
source file and position
the file position where the period expression starts, and where the last posting ends
the file position where the date starts, and where the last posting ends