Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains useful functions to evaluate expressions to weak-head
normal form or just normal form. Useful to force traces or error
inside
monadic computation or to remove space leaks.
- module Control.DeepSeq
- evaluateNF :: (NFData a, MonadIO m) => a -> m a
- evaluateNF_ :: (NFData a, MonadIO m) => a -> m ()
- evaluateWHNF :: MonadIO m => a -> m a
- evaluateWHNF_ :: MonadIO m => a -> m ()
Documentation
module Control.DeepSeq
evaluateNF :: (NFData a, MonadIO m) => a -> m a Source #
Alias for evaluateWHNF . force
with clearer name.
evaluateNF_ :: (NFData a, MonadIO m) => a -> m () Source #
Alias for evaluateWHNF . rnf
. Similar to evaluateNF
but discards resulting value.
evaluateWHNF :: MonadIO m => a -> m a Source #
Lifted alias for evaluate
with clearer name.
evaluateWHNF_ :: MonadIO m => a -> m () Source #
Like evaluateWNHF
but discards value.