-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 7/2/10 17:24 , Gregory Crosswhite wrote:
> The problem with this approach is that the hash context isn't a monoid;  you
> can absorb data into the context, but you can't combine two hash contexts to
> form a new one.  Thus, the Writer monad won't work for this purpose.

No?  The context is simply a String, which is a monoid, and you can combine
contexts quite meaningfully before you actually compute the final hash (in
fact, that's the whole point!).

- -- 
brandon s. allbery     [linux,solaris,freebsd,perl]      allb...@kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon university      KF8NH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwuiMcACgkQIn7hlCsL25XSbACfZ72nV39ozNV2yvoTO1gtpewK
AMMAn2mKd0j0xQ7Ns728Jzoz7Xq8GqSo
=ZKBD
-----END PGP SIGNATURE-----
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to