hxt-9.1.6: A collection of tools for processing XML with Haskell.

Portabilityportable
Stabilityexperimental
MaintainerUwe Schmidt (uwe\@fh-wedel.de)

Control.FlatSeq

Description

Force evaluation like deepseq in Control.DeepSeq, but control the depth of evaluation. flatseq may evaluate more than seq but less than deepseq

Synopsis

Documentation

($!!) :: WNFData a => (a -> b) -> a -> b

flatseq :: WNFData a => a -> b -> b

rlnf :: (a -> ()) -> [a] -> ()

class WNFData a where

A class of types that can be partially evaluated, but evaluation can be propagated deeper than WHNF

Methods

rwnf :: a -> ()

Default for rwnf is reduction to WHNF

rwnf2 :: a -> ()

Default for rwnf2 is rwnf