Skip to content

Commit 0c30bef

Browse files
committed
generalise Control.Monad.Except.except to ExceptT
1 parent 241e114 commit 0c30bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Control/Monad/Except.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import Data.Identity (Identity(..), runIdentity)
3434
type Except e a = ExceptT e Identity a
3535

3636
-- | 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
37+
except :: forall e m a. (Applicative m) => Either e a -> ExceptT e m a
38+
except = ExceptT <<< return
3939

4040
-- | Run a computation in the `Except` monad. The inverse of `except`.
4141
runExcept :: forall e a. Except e a -> Either e a

0 commit comments

Comments
 (0)