[Haskell-cafe] Code review request - using ErrorT

C K Kashyap ckkashyap at gmail.com
Fri Aug 31 21:01:41 CEST 2012


Dear gentle Haskellers,

I'd appreciate it very much if you could please take a look the my code
here and give me some feedback -

https://github.com/ckkashyap/haskell-websocket/blob/master/src/lib/Net/WebSocket/Request.hs

I am particularly looking for advice around what would be a good type for a
server handler function that does IO and needs to short circuit if it fails
at any point also needs to thread a state along. I am considering this -

ErrorT String (StateT Int IO) Data


Regards,
Kashyap
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120901/5a61d2ca/attachment.htm>


More information about the Haskell-Cafe mailing list