Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Catch exceptions produced in pure code
- catchPureErrors :: a -> IO (Either String a)
- catchPureErrorsSafe :: a -> IO (Either String a)
Documentation
catchPureErrors :: a -> IO (Either String a) Source
Evaluate to weak head normal form and catch exceptions which can be raised by errors in pure computation. See also the Test.ChasingBottoms.IsBottom module in ChasingBottoms package.
catchPureErrorsSafe :: a -> IO (Either String a) Source
Make sure that the error message is a concrete String.