[Haskell-beginners] Monads in javascript

Ertugrul Soeylemez es at ertes.de
Thu Jul 14 11:51:26 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Tony Morris <tonymorris at gmail.com> wrote:

> > Also most of the libraries I upload to Hackage use continuations a
> > lot.
>
> Do you have a few examples?

The contstuff library is probably the most important example here.  It
is an advanced monad transformer library with many features not found in
other libraries like mtl or monadLib.  But it takes some time to get
used to the CPS-iness and the slightly different semantics following it.

Other examples are ihttp, ismtp and netlines, which use contstuff and
the enumerator library, both CPS-heavy libraries.  Unlike other
libraries I regard the iteratee interface as a feature, not as an
implementation detail which should be hidden.

And for the sake of completeness the dnscache library is a caching DNS
resolver library, which also uses contstuff and provides a StateT
interface for those, who don't like IO-global state.


Greets,
Ertugrul


- -- 
nightmare = unsafePerformIO (getWrongWife >>= sex)
http://ertes.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAwAGBQJOHrweAAoJENVqN/rl3Y0RJakQALVeXbTFBFwp3nUbHVfFM4lb
y0sp8LMoAh/lXz5dziJ1UScLOVorztz0c1ppmMlITDjp3eSkc4RryqKdovhOJJUt
9oGVY/rQklr/sMZlIOGTQIEU2fl0nmZpP3gkKGV4bSBfPozN8F6r5o2OgRW412rq
cHOCTVK+5HxNGtBN46cntV8sByln1xhfAYma3l65FGJlsN9FNBC4vxzJO1nfAHwy
75Ml8XLLD1cqcCr43gP7yJmZ6NZvqKjikzptn8QIxKnXgVqMnL0lKqTKSPMHgZPs
iWVLhj2BEXxqNmxL8Xzqf6XCsBtBrJsQupOdUAUkH630iyMB34zoVosRyIbjBF18
S7gF2QcxiqxDpbpzqjSJcMffcsAGeBPVdymEEtd8dJEMuuW1D7+tsRC3gm/aYZJ1
TV+yAxyok+f0jZ08y9yTjiMatSNXzNON/NQz7ORMX7jmi2UvFrlNB9OffA424g9a
392SNxfhfhBKmdh3J91EK8feXozbtvSP2t+0rt/Ie5Lj6OrgCg4kQ5gu7nGYvlJ7
0h01hKBeBtg1J74RKesR+5EP6rSbqifLPSHXmpT5V5zB5C3++5UyVWKYipCFeNmW
fP+HrdyzmXiRkPWMSdI9GQisYjKbeFBnLgK77n4FOcpyBoJAPp/8iplEj8J1zb6v
K1hYqIelbzwAmy7OrHOf
=A9sn
-----END PGP SIGNATURE-----


More information about the Beginners mailing list