source range for type error sometimes includes comment
foo = head
$ not -- bar
$ () -- baz
produces these error messages (only showing their source range annotations here)
2 | $ not -- bar
| ^^^^^^^^^^...
3 | $ () -- baz
| ^^
For line 2, the source range includes the comment, which I find strange; while for line 3, it does not.
I checked with some earlier GHC versions, and I think this appeared with 8.2 (when source ranges were introduced?) and it's the same up to 9.0.1.