Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.. as caught by @Profpatsch in: #812 (comment) Before this change the location was always being reported as `(stdin):1:1` because the `SourcedException` kept getting modified with a broader source location in the `Note` branch of `loadWith`. This was originally done so that alternative imports would show the entire source span, but it mistakenly just kept bubbling up regardless of whether or not there were alternative imports. Instead, this includes an approximate source span for alternative imports. The source span bounds are correct but the contents just show which imports were alternated, even if they might have been buried in a larger expression. For example, if the original expression had been: ```haskell Some ./x ? None ./y ``` ... then the source span for the error message would display just: ```haskell ./x ? ./y ``` ... which is probably as good as it will get for now.
- Loading branch information