diagrams / diagrams-builder

Utilities for creating diagram-building tools
Other
12 stars 15 forks source link

Add srcloc to snippet parse error message #11

Closed yiding closed 10 years ago

yiding commented 10 years ago

Snippet modules that has parse errors now shows line and column numbers.

Not sure if this is meant to be used this way, but I had a tool on-demand compiles a module (passed in as a snippet) that generates a diagram, and I found the parse errors in this module did not show line numbers.

Tested by patching the hackage version with this diff, and verified that parse errors did show source loc.

byorgey commented 10 years ago

Thanks! Released as diagrams-builder-0.5.0.10.