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
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
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
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