HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

ModuleQuickCheck-2.18.0.0Haskell2010

Test.QuickCheck.Exception

Throwing and catching exceptions. Internal QuickCheck module.

Synopsis
valuetryEvaluate :: a -> IO (Either AnException a)
#
valuetryEvaluateIO :: IO a -> IO (Either AnException a)
#
valueevaluate :: a -> IO a
#
valueisInterrupt :: AnException -> Bool

Test if an exception was a ^C. QuickCheck won't try to shrink an interrupted test case.

valueisDiscard :: AnException -> Bool
#
valuediscard :: a

A special error value. If a property evaluates discard, it causes QuickCheck to discard the current test case. This can be useful if you want to discard the current test case, but are somewhere you can't use ==>, such as inside a generator.

valuefinally :: IO a -> IO b -> IO a
#