Title pretty much says it all. I'm looking for something like this:
f :: Int -> Bool -> Int
f = _body
Djinn can use theorem proving to generate code for such a function by proving that the type is inhabited.
I'm wondering, is there an existing way to get this functionality from within Emacs? So instead of writing TemplateHaskell in my code, I just run a command on my code and it inserts the generated code?
I have ghc-mod installed, but I'm not very familiar with it.