[Haskell-cafe] odd problem with export list of System.IO
manlio_perillo at libero.it
Sun Mar 1 09:55:37 EST 2009
Johan Tibell ha scritto:
> On Sun, Mar 1, 2009 at 3:07 PM, Manlio Perillo <manlio_perillo at libero.it> wrote:
>> Maybe I'm missing something, but I don't understand why the following
>> 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.
import System.IO (Handle, withFile, IOMode(ReadMode))
solved the problem, thanks.
However, why individual data constructors of the IOMode type are not
More information about the Haskell-Cafe