[Haskell-cafe] A Monad for on-demand file generation?

Ketil Malde ketil at malde.org
Tue Jul 1 05:53:46 EDT 2008

Joachim Breitner <mail at joachim-breitner.de> writes:

>> 1) unsafeInterleaveIO seems like a big hammer to use for this problem,
>> and there are a lot of gotchas involved that you may not have fully
>> thought out.  But you do meet the main criteria (file being read is
>> assumed to be constant for a single run of the program).

> Any other gotcha? 

The one that springs to mind is that you might run out of file
handles. At least on Linux, that's a precious resource.

If I haven't seen further, it is by standing in the footprints of giants

More information about the Haskell-Cafe mailing list