We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MaybeT
1 parent 7bd268c commit 30421c2Copy full SHA for 30421c2
src/Control/Monad/Maybe/Trans.purs
@@ -44,10 +44,10 @@ derive instance newtypeMaybeT :: Newtype (MaybeT m a) _
44
instance functorMaybeT :: Functor m => Functor (MaybeT m) where
45
map f (MaybeT ma) = MaybeT (map f <$> ma)
46
47
-instance applyMaybeT :: Apply m => Apply (MaybeT m) where
48
- apply (MaybeT f) (MaybeT x) = MaybeT (apply <$> f <*> x)
+instance applyMaybeT :: Monad m => Apply (MaybeT m) where
+ apply = ap
49
50
-instance applicativeMaybeT :: Applicative m => Applicative (MaybeT m) where
+instance applicativeMaybeT :: Monad m => Applicative (MaybeT m) where
51
pure = MaybeT <<< pure <<< Just
52
53
instance bindMaybeT :: Monad m => Bind (MaybeT m) where
0 commit comments