Rewrite `addLocToTypeErr`
byorgey opened this issue · comments
Brent Yorgey commented
I actually want to completely rewrite
addLocToTypeErr
(it should actually have a type likeSrcLoc -> TC a -> TC a
, and maybe a different name to go with it; it should handle all the different kinds of type errors, to facilitate which we should factor theSrcLoc
out so it's not duplicated in every constructor, etc.) so I'd prefer to just wait and do all the refactoring at once.
Originally posted by @byorgey in #1283 (comment)