Alan & Kim Zimmerman
alan.zimm at gmail.com
Sun Oct 3 17:40:35 UTC 2021
I am working on a variant of the exact printer which updates the annotation
locations from the `EpaSpan` version to the `EpaDelta` version, as the
data EpaLocation = EpaSpan RealSrcSpan
| EpaDelta DeltaPos
The function doing the work is this
markAnnKw :: (Monad m, Monoid w)
=> EpAnn a -> (a -> EpaLocation) -> (a -> EpaLocation -> a) ->
AnnKeywordId -> EP w m (EpAnn a)
which gets an annotation, a function to pull a specific location out, and
one to update it.
I do not know much about lenses, but have a feeling that I could simplify
things by using one.
Can anyone give me any pointers?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ghc-devs