ekmett / exceptions

mtl friendly exceptions
Other
49 stars 32 forks source link

Enable TypeOperators to use (~) #83

Closed int-index closed 2 years ago

int-index commented 2 years ago

GHC Proposal #371 requires TypeOperators to use type equality a~b. The following lines are affected:

instance e ~ SomeException => MonadThrow (Either e) where
instance e ~ SomeException => MonadCatch (Either e) where
instance e ~ SomeException => MonadMask (Either e) where

The fix is to simply enable the extension.