jgm/commonmark-hs

re-export parsec SourcePos accessors

frasertweedale opened this issue · 3 comments

To deal robustly with source positions of document elements (e.g. for deletion or alteration) we need to be able to drill into the SourcePos values in the SourceRange. It is a bit of a nuisance to require a direct dependency on parsec to get at the
sourceLine and sourceColumn functions. Re-exporting them from commonmark would be very helpful!

jgm commented

Agreed.

jgm commented

Do you feel like making a PR?

@jgm yeah I can do it. Will get to it some time in the next week.