prim-spoon-0.1.0: Catch errors thrown from pure computations using primops.

Copyright(c) Michael Klein, 2016
LicenseGPL-3
Maintainerlambdamichael@gmail.com
Stabilityexperimental This module exports `primspoon`. If you want the other spoon functions, you'll need "Control.Spoon".
Safe HaskellUnsafe
LanguageHaskell2010

Control.Spoon.Prim

Description

 

Synopsis

Documentation

primspoon :: a -> Maybe a Source

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