[Haskell-cafe] [newbie] How to test this function?

Donald Bruce Stewart dons at cse.unsw.edu.au
Thu Sep 21 01:48:37 EDT 2006

> br1:
> > Second, I want to test this function, without hitting the filesystem.  In  
> > C++ I would use a istringstream.  I couldn't find a function that returns  
> > a Handle from a String.  The closer thing that may work that I could find  
> > was making a pipe and convertind the file descriptor.  Can I simplify that  
> > function to take it out of the IO monad?  How?  I thought about  
> > getContents, but that eats all input.

I've summarised  this little introduction to QuickCheck on the
haskell.org wiki here,

-- Don

More information about the Haskell-Cafe mailing list