Copyright | © 2019 James Alexander Feldman-Crough |
---|---|
License | MPL-2.0 |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
Documentation
enrichLocation :: SparseLocation -> Location Source #
Add lazily computed line and column number information to a SparseLocation
.
stripLocation :: Location -> SparseLocation Source #
Remove line and column number information from a Location
.
sparse :: Iso' Location SparseLocation Source #
An isomorphism between Location
and SparseLocation
. This is allowed because although a Location
has strictly more data than a SparseLocation
, those values are denormalizations of values within SparseLocation
.