<div dir="ltr"><div class="gmail_default" style="font-size:small">I'd like to know more about what you are doing, I feel like I've set out to do something similar in the past and ended up going a different way.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 6, 2021 at 2:51 AM Anton Kholomiov <<a href="mailto:anton.kholomiov@gmail.com">anton.kholomiov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>I have a task to convert one Haskell expression to another.<br></div>And I'd like to report errors properly.<br><br></div>[interpret|   -- error reported here<br><div><div>   valid haskell code<br></div><div>   invalid code           <- error<br></div><div>|]<br><br></div><div>I can parse it with haskell-src-exts or haskell-src-meta.<br></div><div>but if I have error in the code (type-check) error is positioned on the first line of the QQ-expression.<br><br></div><div>Do you know is it possible to report error at the line where it has happened or<br></div><div>to keep original source code location in the Exp.<br><br></div><div>In the function I do transformation Exp -> Exp.<br><br></div><div>Or maybe there is a better way to do it instead of QQ?<br></div></div></div>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div>