-
Notifications
You must be signed in to change notification settings - Fork 23
RIO propagation 2025-05-09
#1186
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
Conversation
88fea17 to
5fb32e1
Compare
5fb32e1 to
38ef900
Compare
38ef900 to
0230e6b
Compare
0230e6b to
f477119
Compare
d2956b7 to
08f0d8c
Compare
1d026b2 to
a904df9
Compare
| fromEitherCli | ||
| :: forall e m a | ||
| . (HasCallStack, MonadIO m, Show e, Typeable e, Error e) | ||
| :: (HasCallStack, MonadIO m, Show e, Typeable e, Error e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those foralls were here on purpose. Now the order of type variables is sub-optimal. The problem here is that the previous version was allowing to use TypeApplications to enforce the error type i.e.
fromEitherCli @(FileError ()) fooNow with your version you need to do:
fromEitherCli @_ @(FileError ()) foowhich is a tad inconvenient.
| :: (HasCallStack, MonadIO m, Show e, Typeable e, Error e) | |
| :: (HasCallStack, Show e, Typeable e, Error e, MonadIO m) |
This applies to all the functions with removed foralls.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually didn't notice this. I will revert the changes.
| -> m a | ||
| fromExceptTCli = withFrozenCallStack $ fromEitherIOCli . runExceptT | ||
|
|
||
| handleFileErrorCli |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this function? You can use fromEitherIOCli @(FileError ()) instead. This seems to be a needless specialisation.
|
|
||
| let regCert = makeStakeAddressRegistrationCertificate req | ||
|
|
||
| fromEitherIOCli @(FileError ()) $ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's wrong with type applications?
05d80e0 to
25bce52
Compare
25bce52 to
a166aeb
Compare
a166aeb to
96c3c08
Compare
Changelog
Context
Additional context for the PR goes here. If the PR fixes a particular issue please provide a link to the issue.
How to trust this PR
Highlight important bits of the PR that will make the review faster. If there are commands the reviewer can run to observe the new behavior, describe them.
Checklist