-
Notifications
You must be signed in to change notification settings - Fork 8
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
Getting RULES to fire before HERMIT starts #177
Comments
If you want to do it the 'real' way, you could run HERMIT later in the pipeline, after the first round of simplification and rule application. If you want to be able to do it on a whim, you can (with the diff I just pushed):
But that is not quite the same as what GHC does, because there can be specialization rules on binders. For that you'd need (I'm speculating, haven't typechecked):
(essentially, the bit after You could just |
@xich Thanks! This might be slightly off-topic but if I were to write a GHC plugin, how would I tell the system to run it later in the pipeline (after the RULES have fired)? |
If you're using Line 151 in d38052f
|
If you are using the default HERMIT (invoking via |
@xich Well, right now I'm trying to develop a small plugin, which is why this is probably slightly off-topic =). Using HERMIT would be tricky at the moment because |
Is there a way to get all rewrite RULES that GHC would normally apply to fire before HERMIT's REPL starts running? Or is there a HERMIT command that would do something along those lines (to fire all RULES that currently apply everywhere)?
The text was updated successfully, but these errors were encountered: