4 ms·
There's quite a few on Hackage. http://hackage.haskell.org/packages/archive/pkg-list.html#cat:network http://hackage.haskell.org/packages/archive/pkg-list.html#
by dons 17y ago
There's quite a few on Hackage. http://hackage.haskell.org/packages/archive/pkg-list.html#cat:network http://hackage.haskell.org/packages/archive/pkg-list.html#ca...
E.g. salvia: http://hackage.haskell.org/package/salvia http://hackage.haskell.org/package/salvia
The trick is to use lots of Haskell lightweight threads to hide latency (much as you would with Erlang).
- davidw 17y agoCool, thank you! If I may ask you another question, how would one install that and start fooling around with it? I really don't have time, but... my curiosity has been piqued! (So much for 'discipline', but hey, it's a Sunday). (BTW, Google is very fast at indexing conversations here - this thread is the first thing that turns up for "mochiweb vs salvia")
- a-priori 17y agoCabal has a command-line tool for downloading and installing packages (http://hackage.haskell.org/trac/hackage/wiki/CabalInstall http://hackage.haskell.org/trac/hackage/wiki/CabalInstall). A package for it should exist for it on your platform, maybe called "cabal-install". Once you've got it, running "sudo cabal install salvia" should do the trick. (Failing that, you can wade through dependency hell and install salvia, and its dependencies, yourself. All Cabal packages have a Setup.hs or Setup.lhs file that controls building it. Run "runhaskell Setup.hs build" then "runhaskell Setup.hs install" (or similar) in each source tree.)
- dons 17y agoSuper easy: * one click: install the Haskell Platform: http://hackage.haskell.org/platform http://hackage.haskell.org/platform * type: cabal install salvia Another good one is hyena, http://hackage.haskell.org/package/hyena http://hackage.haskell.org/package/hyena You can get a concurrent web server going in a dozen lines of code or so.