Haskell - how to write array to file?
Posted
by MMM
on Stack Overflow
See other posts from Stack Overflow
or by MMM
Published on 2010-05-24T08:41:50Z
Indexed on
2010/05/24
8:51 UTC
Read the original article
Hit count: 256
haskell
I am trying:
saveArr = do
outh <- openFile "test.txt" WriteMode
hPutStrLn outh [1,2,3]
hClose outh
but it doesn't works... output:
No instance for (Num Char) arising from the literal `1'
© Stack Overflow or respective owner