[Haskell-cafe] odd problem with export list of System.IO
Johan Tibell
johan.tibell at gmail.com
Sun Mar 1 09:14:08 EST 2009
On Sun, Mar 1, 2009 at 3:07 PM, Manlio Perillo <manlio_perillo at libero.it> wrote:
> Hi.
>
> Maybe I'm missing something, but I don't understand why the following
> program:
>
> module Main where
> import System.IO (Handle, withFile, ReadMode)
You want to import IOMode(..), not ReadMode. The latter is a data
constructor of the IOMode type.
Cheers,
Johan
More information about the Haskell-Cafe
mailing list