pro-source-0.1.0.0: Utilities for tracking source locations
Copyright© 2019 James Alexander Feldman-Crough
LicenseMPL-2.0
Safe HaskellNone
LanguageHaskell2010

ProSource.LocationOps

Description

 
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.