[Haskell-cafe] ANNOUNCE: hs-cryptohash 0.4

Brandon S Allbery KF8NH allbery at ece.cmu.edu
Fri Jul 2 20:48:07 EDT 2010


-----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]      allbery at kf8nh.com
system administrator  [openafs,heimdal,too many hats]  allbery at 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-----


More information about the Haskell-Cafe mailing list