> module Main where
>
> import System
> import qualified Data.Digest.MD5 as MD5
> import qualified Data.ByteString as BS
>
> main = do
>   args <- getArgs
>   dt <- BS.readFile $ head args
>   putStrLn $ show $ MD5.hash . BS.unpack $ dt
               ^^^^              ^^^^^^^^^

                                 not a good idea.

You need an MD5 over bytestrings, not [Word8].

Where do I get one?
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to