Re: how to read a file's content to a string?

5 Mar
2002
5 Mar
'02
7:03 p.m.
At 2002-03-05 14:43, Zhe Fu wrote:
content :: FilePath -> String content f = readFile f
You have the wrong type signature for 'content'. This should solve it: content :: FilePath -> IO String content f = readFile f Of course, you'll need to change whatever uses 'content'. -- Ashley Yakeley, Seattle WA
8477
Age (days ago)
8477
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ashley Yakeley