-
Notifications
You must be signed in to change notification settings - Fork 32
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
Rewriting to add constraints? #37
Comments
That would be sweet, but I don't think retrie is able to rewrite types. EDIT: I was wrong, see |
You can hack something that traverses the
I wonder if this could be generalised and incorporated in retrie somehow |
Would such a thing do transitive dependencies? Like, anything that calls anything that calls I think I'll probably just play whack-a-mole in HLS on this one. |
Without touching the callsite, would it be possible to use retrie for changing: bar :: a -> IO b ... into: bar :: MonadIO m => a -> m b It seems like Am I missing something, or is it currently not possible to add contraints on multi argument function? |
Can you run a second adhoc-type rewrite to fix the malformed signatures? |
@pepeiborra unfortunately this fails with this message:
Similarly, trying |
Hi all,
I've got a big refactoring project coming up, and am wondering if retrie can help me. I'd like to change the following signature:
to instead be:
and then push the
Member (Embed IO) r
constraint through all transitive callsites tofoo
. None of the documentation seems to suggests anything about this use case --- can retrie handle it?The text was updated successfully, but these errors were encountered: