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.
1 parent 08b975a commit 7bd268cCopy full SHA for 7bd268c
src/Control/Monad/Except/Trans.purs
@@ -57,13 +57,10 @@ derive instance newtypeExceptT :: Newtype (ExceptT e m a) _
57
instance functorExceptT :: Functor m => Functor (ExceptT e m) where
58
map f = mapExceptT (map (map f))
59
60
-instance applyExceptT :: Apply m => Apply (ExceptT e m) where
61
- apply (ExceptT f) (ExceptT x) =
62
- let f' = apply <$> f
63
- x' = f' <*> x
64
- in ExceptT x'
+instance applyExceptT :: Monad m => Apply (ExceptT e m) where
+ apply = ap
65
66
-instance applicativeExceptT :: Applicative m => Applicative (ExceptT e m) where
+instance applicativeExceptT :: Monad m => Applicative (ExceptT e m) where
67
pure = ExceptT <<< pure <<< Right
68
69
instance bindExceptT :: Monad m => Bind (ExceptT e m) where
0 commit comments