[Haskell-cafe] odd problem with export list of System.IO

2009-03-01 Thread Manlio Perillo
Hi. Maybe I'm missing something, but I don't understand why the following program: module Main where import System.IO (Handle, withFile, ReadMode) main = do return fails to compile, with a Module `System.IO' does not export `ReadMode' Thanks Manlio Perillo

Re: [Haskell-cafe] odd problem with export list of System.IO

2009-03-01 Thread Johan Tibell
On Sun, Mar 1, 2009 at 3:07 PM, Manlio Perillo 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 t

Re: [Haskell-cafe] odd problem with export list of System.IO

2009-03-01 Thread Manlio Perillo
Johan Tibell ha scritto: On Sun, Mar 1, 2009 at 3:07 PM, Manlio Perillo 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

Re: [Haskell-cafe] odd problem with export list of System.IO

2009-03-01 Thread Brandon S. Allbery KF8NH
On 2009 Mar 1, at 9:55, Manlio Perillo wrote: Johan Tibell ha scritto: On Sun, Mar 1, 2009 at 3:07 PM, Manlio Perillo > 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 impo