MD5.lhs is an implementation of the MD5 algorithm described in RFC 1321 in Haskell. It works with both GHC and hugs (others untested). MD5Sum.dpkg.lhs is an example application that uses MD5.lhs in a clone of the md5sum utility that comes with dpkg, the Debian package manager. Also has a -t for test option.