-
Notifications
You must be signed in to change notification settings - Fork 247
Function
's case_return_of_
clashes with RawMonad
's return
#356
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
Comments
|
In the standard library we systematically open the module associated to a nested For instance Is that not sufficient? |
Almost. For access, it is. For creation, AFAIK, you still have to use the nested structure. Or, at least, that's what ctrl-R always gives me. |
Ah I see. I suppose we could also think about having smart constructors taking a |
That sounds reasonable. Now to come up with a good name... |
In #2157 this was fixed by renaming |
It is very unfortunate that as soon as you write
open RawMonad m
to be able to writesome monadic code, you get a parse error on
case_return_of_
.I suggest changing the definition of
RawIMonad
to aRawIApplicative
+_>>=_
andto explicitly deprecate
return
in favour ofpure
.The text was updated successfully, but these errors were encountered: