HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulespoon-0.3.1Haskell98

Control.Spoon

Two functions for catching pureish exceptions in pure values. This library considers pureish to be any error call or undefined, failed pattern matches, arithmetic exceptions, and array bounds exceptions.

  • 1 type
  • 5 values
  • Packagespoon-0.3.1
  • Exports6
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceSpoon.hs
valuespoon :: NFData a => a -> Maybe a
#

Evaluate a value to normal form and return Nothing if any exceptions are thrown during evaluation. For any error-free value, spoon = Just.

valuespoonWithHandles :: NFData a => Handles a -> a -> Maybe a
#

Evaluate a value to normal form and return Nothing if any exceptions are thrown during evaluation. For any error-free value, spoon = Just.