-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate djinn-like code generation #205
Comments
This looks quite easy to do with https://hackage.haskell.org/package/djinn-ghc |
https://github.com/TyGuS/hoogle_plus seems to be a newer alternative https://cseweb.ucsd.edu/~npolikarpova/publications/hplus.pdf |
@pepeiborra please tell me if I can help in any way. I'll give |
@TomMD Afaiu the tactic plugin has brought something similar to described here: type-directed code generation via code action. |
The tactics plugin subsumes all of djinn's functionality, as well as provides support for inductive types. |
Yep, I was thinking the same thing. Not sure about the UX still, but that's a different ticket. For those coming here via search consider:
Ask for a code action, you'll have lots of options. Try number 4,
Some extra parentheses and another hole. In my case with nvim I needed to move the cursor to the new hole and re-execute code-action. This time try number 1
The default formatting isn't able to clean this up at this time. |
What do people think about a type-directed code generation via code action?
I imagine an HLS integration of djinn (de-bitrotted) that adds currently in scope type/data/classes to the djinn environment then can update any undefined or perhaps hole with a djinn query.
The text was updated successfully, but these errors were encountered: