<div dir="ltr">No, there's no way to do this. I'm not aware of any stable way of dynamically compiling and running Haskell code.<div><br></div><div>/ Ulf</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 14, 2016 at 1:02 AM, Martin Stone Davis <span dir="ltr"><<a href="mailto:martin.stone.davis@gmail.com" target="_blank">martin.stone.davis@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is there a way to do this? I'd like to write something like foo :: Term -> TC Term (in Haskell) and invoke it from Agda such that Agda "knows" what gets returned (in the same way that it knows the values of other builtin reflection functions). I don't think this is possible at the moment: afaics, the FFI only allows Agda to "call out", leaving the results of the call obscured behind a postulate.<br>
<br>
______________________________<wbr>_________________<br>
Agda mailing list<br>
<a href="mailto:Agda@lists.chalmers.se" target="_blank">Agda@lists.chalmers.se</a><br>
<a href="https://lists.chalmers.se/mailman/listinfo/agda" rel="noreferrer" target="_blank">https://lists.chalmers.se/mail<wbr>man/listinfo/agda</a><br>
</blockquote></div><br></div>