data-pprint-0.2.1.3: Prettyprint and compare Data values

Safe HaskellSafe-Infered

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.