28 Jan
2023
28 Jan
'23
1:15 a.m.
Facundo Domínguez
Dear GHC devs,
I'm trying to port Liquid Haskell to ghc 9.2.5. And having much difficulty using the GHC API for a specific task, so I come here to ask about it.
As you may know already, Liquid Haskell needs to read special comments from Haskell source code which have the form {-@ ... @-}.
I agree with Santiago here: Data doesn't produce fantiastic code but I would guess that the cost of the traversal to collect your signatures will be negligible relative to the cost of the work you will later do later in your pipeline. I would leave optimising this until you know that it is a significant problem. Cheers, - Ben