Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module defines types and functions dealing with source code locations.
Documentation
An abstract type representing locations in a file.
unknownLocation :: Location Source
The unknown location (file ?
and line 0
).
lineNumber :: Location -> Int Source
Extract the line number of a Location
.