I would like to write something as the following:
(+) <$> Just 3 <*> Just 5 <*>' (+) <*> Just 6
However the problem is that I need to somehow flip
<*>
. What is the idiomatic way in Haskell to do the type of chaining I'm trying?
I would like to write something as the following:
(+) <$> Just 3 <*> Just 5 <*>' (+) <*> Just 6
However the problem is that I need to somehow flip
<*>
. What is the idiomatic way in Haskell to do the type of chaining I'm trying?
<**>
fromControl.Applicative
isflip <*>
. Your example can work with that, slightly rearranged: