Skip to content

Commit

Permalink
Removed the spurious Error constraint from MonadError e (Either e).
Browse files Browse the repository at this point in the history
  • Loading branch information
ekmett committed Jul 12, 2013
1 parent 9cc075c commit c090cfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Control/Monad/Error/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ instance MonadError IOException IO where
-- ---------------------------------------------------------------------------
-- Our parameterizable error monad

instance Error e => MonadError e (Either e) where
instance MonadError e (Either e) where
throwError = Left
Left l `catchError` h = h l
Right r `catchError` _ = Right r
Expand Down
2 changes: 1 addition & 1 deletion mtl.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: mtl
version: 2.1.2
version: 2.1.3
cabal-version: >= 1.6
license: BSD3
license-file: LICENSE
Expand Down

0 comments on commit c090cfb

Please sign in to comment.