"import qualified IO (readFile)" gives IO.readFile not defined

16 Dec
2001
16 Dec
'01
10:29 p.m.
Hi guys, With import qualified IO (readFile) I get Error when renaming:: Identifier IO.readFile used at 2:22 is not defined. I vaguely remember seeing something like this on one of the lists recently, but I can't find it now, so my apologies if this has already been reported. Thanks Ian

17 Dec
17 Dec
11:09 a.m.
import qualified IO (readFile)
Error when renaming:: Identifier IO.readFile used at 2:22 is not defined.
Indeed, at the moment readFile is not defined in the IO module. It is actually a Prelude function. However, according to the Report, IO ought to re-export it (and all the other PreludeIO functions), so I'll add a fix. Regards, Malcolm
8603
Age (days ago)
8604
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ian Lynagh
-
Malcolm Wallace