-
-
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
Tactics should make use of GHC hole refinment suggestions #560
Comments
I'm not convinced this would buy anything; there are looots of valid fits, and |
Only if you import it. We can always filter the hole fits to use only those that make the subgoals "smaller" in some way, so that we don't pick things like |
Would it be possible to only consider "safe" functions? |
Really and truly I don't think having these hole fits would help. The hard part of solving holes is not the search, it's knowing what not to search. Just off the top of my head, GHC will report Explicitly opting-in to what you'd like to have in scope is the only sane solution I can think of here! |
That sounds like a good idea! There's issues like #562 (program generation via combinators) that would be solved if the user could specify which values they would like to use. |
It's on the roadmap: isovector#6 |
Closing this issue, but feel free to reopen if someone has a strong counterargument. |
It would be awesome if we could add a tactic based on GHCs existing hole-fit system. I've added support to
ghcide
to capture relevant hole fits in haskell/ghcide#889.Alternatively, tactics could directly call
findValidHoleFits
.This would also let existing GHC Hole Fit Plugins easily extend the tactics mechanism to add functionality and guide synthesis.
/cc @isovector
The text was updated successfully, but these errors were encountered: