You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error reporting of this library is awesome, thank you!
However, it does not integrate well with HLS. Any error span the complete quasi quote AND the customerror message localization with custom caret is integrated in the error message, leading to a lot of clutter.
See for example:
In comand line we get:
[1 of 2] Compiling Main ( Main.hs, Main.o, Main.dyn_o )
Main.hs:40:19: error:
• 3:9:
|
3 | fom "user"
| ^
unexpected '"'
expecting end of input or white space
• In the quasi-quotation:
[maybeStatement|
select name :: text, email :: text, phone :: text?
fom "user"
where id = $1 :: int4
|]
|
40 | [maybeStatement|
|
However, it is possible to give precise localization position in quasi quote using a small trick. See my implementation in PyF here:
The error reporting of this library is awesome, thank you!
However, it does not integrate well with HLS. Any error span the complete quasi quote AND the customerror message localization with custom caret is integrated in the error message, leading to a lot of clutter.
See for example:
In comand line we get:
However, it is possible to give precise localization position in quasi quote using a small trick. See my implementation in PyF here:
https://hackage.haskell.org/package/PyF-0.11.2.1/docs/src/PyF.Internal.QQ.html#reportErrorAt
The text was updated successfully, but these errors were encountered: