hedgehog-0.4: Hedgehog will eat all your bugs.

Safe HaskellSafe
LanguageHaskell98

Hedgehog.Internal.Exception

Synopsis

Documentation

newtype TypedException Source #

Newtype for SomeException with a Show instance that only contains valid Haskell 98 tokens and also includes the type of the exception.

For example, when catching the exception thrown by fail "foo" :: IO () and calling show:

  IOException "user error (foo)"

Having access to the type can be useful when trying to track down the source of an exception.