The sink package
Lazy I/O conflates evaluation with execution; a value obtained from unsafeInterleaveIO can perform side-effects during the evaluation of pure code. Like lazy I/O, a Sink provides a way to obtain the value of the result of an IO action before the action has been executed, but unlike lazy I/O, it does not enable pure code to perform side-effects. Instead, the value is explicitly assigned by a later IO action.
|Dependencies||base (≥4.3 & <4.5)|
|Maintainer||Jake McArthur <Jake.McArthur@gmail.com>|
|Category||Control, Data, System|
|Source repository||darcs get http://patch-tag.com/r/jmcarthur/sink|
|Upload date||Sat Aug 27 16:20:39 UTC 2011|