[Haskell-beginners] Testing unpure network code
Maciej Piechotka
uzytkownik2 at gmail.com
Fri Jun 12 07:03:07 EDT 2009
On Thu, 2009-06-11 at 09:59 -0400, Isaac Dupree wrote:
> Maciej Piechotka wrote:
> > Hello. I have a problem with testing. I've wrote a client library for
> > NNTP protocol. However I don't know how to test it.
> >
> > I though about spawning a thread for server inside a test but Haskell
> > (ghc and hugs?) uses green blocking threads so forkIO is not an option.
>
> GHC forkIO uses threads that can make blocking foreign calls in parallel
> (*not* blocking the whole process), at least if you compile with
> ghc -threaded
>
> -Isaac
Thank you. Is there any guide how to set up tests? I have sources in
src/ directory and tests in tests/.
Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/beginners/attachments/20090612/b3f905df/attachment.bin
More information about the Beginners
mailing list