[Haskell-cafe] After `readFile`, why cannot i `writeFile` ?

Bill Atkins watkins at alum.rpi.edu
Mon Jun 7 21:34:04 EDT 2010


BTW, "\n -> show n" is equivalent to "show" .

On Monday Jun 7, 2010, at 8:37 PM, zaxis wrote:

>> Yes, and i can use appendFile too.
>> 
>> appendFile "ssqHitNum.txt" $ unwords $ [no] ++ map (\n -> show n) hitNum
>> ++ ["\n"]
> 



More information about the Haskell-Cafe mailing list