[Haskell-cafe] In-memory Handle for testing

Simon Hengel sol at typeful.net
Fri Jan 20 12:53:36 CET 2012


For testing I want to stub handles, performing all reads and writes in
memory (and in process, so no mmap).  From looking at the documentation
of mkFileHandle[1], I think this should be possible.  But it requires
some work.  Is there already something out there?

Cheers,
Simon

[1] http://hackage.haskell.org/packages/archive/base/4.4.1.0/doc/html/GHC-IO-Handle.html#v:mkFileHandle



More information about the Haskell-Cafe mailing list