data-pprint-0.2.4.1: Prettyprint and compare Data values

Safe HaskellSafe
LanguageHaskell98

Control.Exception.Pure

Description

Catch exceptions produced in pure code

Synopsis

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.