[Agda] reflection via FFI?

Martin Stone Davis martin.stone.davis at gmail.com
Fri Oct 14 01:02:10 CEST 2016


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.



More information about the Agda mailing list