<div dir="ltr">Thanks folks. I was concerned I might be missing some dedicated way to achieve the same with the GHC API. I agree there's a fair chance this won't be noticeable in benchmarks.<div><div><br></div><div>Cheers!</div><div>Facundo</div><div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 27, 2023 at 10:15 PM Ben Gamari <<a href="mailto:ben@smart-cactus.org">ben@smart-cactus.org</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">Facundo Domínguez <<a href="mailto:facundo.dominguez@tweag.io" target="_blank">facundo.dominguez@tweag.io</a>> writes:<br>
<br>
> Dear GHC devs,<br>
><br>
> I'm trying to port Liquid Haskell to ghc 9.2.5. And having much difficulty<br>
> using the GHC API for a specific task, so I come here to ask about it.<br>
><br>
> As you may know already, Liquid Haskell needs to read special comments from<br>
> Haskell source code which have the form {-@ ... @-}.<br>
><br>
I agree with Santiago here: Data doesn't produce fantiastic code but I<br>
would guess that the cost of the traversal to collect your signatures<br>
will be negligible relative to the cost of the work you will later do<br>
later in your pipeline. I would leave optimising this until you know<br>
that it is a significant problem.<br>
<br>
Cheers,<br>
<br>
 - Ben<br>
<br>
</blockquote></div>