Is there any fast way in Haskell to cast an input file like that into corresponding types? For example a function that takes a string and produces a list of Int
s? Or do I need to parse it manually using getLine
and parse the string?
10.
10.
[4, 3, 2, 1].
[(5,8,'~'), (6,4,'*'), (7,10,'~'), (8,2,'o')].
[4,0,9,4,7,5,7,4,6,4].
[4,10,0,6,6,5,6,5,6,2].