I create a GPT-3 prompt for testing to see if code is Haskell and use it as a test inside emacs to suggest further functions.
As you can see, GPT-3 is able to detect the language and I can use that as a test in my emacs to provide further functions. The suggested function was yet another GPT-3 prompt function for translating Haskell into Clojure.
The faster and more impressive version
This uses emacs'
Create a prompt to check if selected code is Haskell
- The following prompt has been obsoleted by
Add code to use
GPT-3 to test the selected text
GPT-3 will test if the selected text is in the Haskell language.
It will then provide a context menu option to translate it into Clojure.
If this article appears incomplete, it may be intentional. Try prompting for a continuation.