Replies: 3 comments
-
It's interesting. I think a lot of these examples would deserve at least a blog posts where you explain what it is and how it helps. I'm sure other people would find it interesting too. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Have you used this instance a lot in your code, or do you know anyone who is using it? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Currently not, but that's only because I haven't written any dunai code lately. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I believe that
MSF
s are an instance of `Selective. It should be roughly implemented as:This is not particular to
MSF
s but works for any instanceArrowChoice
, and in fact is implemented for theArrowMonad
newtype. So instead one could also write aderiving via
instance.The advantage of such an instance would be additional control flow like
ifS
that doesn't need arrow notation.Beta Was this translation helpful? Give feedback.
All reactions