[Haskell-cafe] can't find in hayoo
developer at live.com
Wed Sep 29 12:03:17 EDT 2010
I need the trick to get from
ByteString -> [GHC.Word.Word8]
and Hayoo is not helping.
Super simple I expected. I haven't even tried to compile it yet.
I am just trying to read in the bytes and encode with base64:
main :: do
args <- getArgs
bFileExist <- System.Directory.doesFileExist (args !! 0)
let bytedata = --ByteString -> [GHC.Word.Word8]
if bFileExist then putStrLn $ Codec.Binary.Base64.encode bytedata
else putStrlLn ("File does not exist: " ++ (args !! 0))
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe