I have a file with multiple list of (String,String,Int):
[("aaa","aaaaaaaa",13),("asdasdasd","asdea",13)]
and I need to store it in a variable, I have this:
xfx = do {
text <- readFile "textlist";
let
x=3 -- nothing
in function text
}
But function receives Char instead of that data type.
If the file contains only one list, then you can just call
readon the result ofreadFile: