[Haskell-cafe] Cleaner networking API - network-fancy

John A. De Goes john at n-brain.net
Thu Aug 13 09:14:09 EDT 2009


Thank goodness for a cleaner networking API. I almost chose Haskell's  
socket API as an example of what _not_ to do in my series on Good API  
Design (http://jdegoes.squarespace.com/journal/2009/5/11/good-api-design-part-3.html 
).

Ended up going with Java though. :-)

Regards,

John A. De Goes
N-Brain, Inc.
The Evolution of Collaboration

http://www.n-brain.net    |    877-376-2724 x 101

On Aug 13, 2009, at 2:14 AM, Taru Karttunen wrote:

> Hello
>
> network-fancy offers a cleaner API to networking facilities in
> Haskell. It supports high-level operations on tcp, udp and unix
> sockets.
>
> I would like some feedback on the API
> http://hackage.haskell.org/packages/archive/network-fancy/0.1.4/doc/html/Network-Fancy.html
>
> In particular:
> * Does the type of the server function in dgramServer make sense?
>  or would (packet -> Address -> (packet -> IO ()) -> IO ()) be
>  better?
> * Does the StringLike class make sense?
> * Any other suggestions?
>
> - Taru Karttunen
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list