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 241e114 commit 0c30befCopy full SHA for 0c30bef
src/Control/Monad/Except.purs
@@ -34,8 +34,8 @@ import Data.Identity (Identity(..), runIdentity)
34
type Except e a = ExceptT e Identity a
35
36
-- | Construct a computation in the `Except` monad from an `Either` value.
37
-except :: forall e a. Either e a -> Except e a
38
-except = ExceptT <<< Identity
+except :: forall e m a. (Applicative m) => Either e a -> ExceptT e m a
+except = ExceptT <<< return
39
40
-- | Run a computation in the `Except` monad. The inverse of `except`.
41
runExcept :: forall e a. Except e a -> Either e a
0 commit comments