HI,
I have a recurrent probleme with function readFile and Monad :
it is that i try to get a line, transform it and stock it in a list
and what i want is that function return me the list.
But hugs say me that in
readFile my_file = \s - map cons_line (lines s)
readFile is a IO String type but is
-
[moving to haskell-cafe]
I want to read some data from a text file. I accomplished it but I want to
read data from file as a Integer list for example text file has [1,2,3,5]
-
Wait you actually have [1,2,3,5]
-
and when I read this data