
Good day everyone, I was fiddling around with this tiny echo client/server haskell program from 'The Great Language Shootout' site (http://www.bagley.org/~doug/shootout/) and got stuck. The code (attached) has been reformatted with minimal API tweak (mkPortNumber, writeSocket, readSocket) to please my ghc-5.02.2, and all what I get is something stuck forever after the first iteration: $ ./echo 3 Client wrote: Hello there sailor Server recv: Hello there sailor Server read: Hello there sailor Server wrote: Hello there sailor After adding all these print statement, I still don't have a clue what's jammed there. Hope someone here can shred some light. BTW, I'd also like to take this chance to ask how to debug a haskell program in general? Regards, Jerry
participants (1)
-
Jerry, JiJie