[Haskell-beginners] ghc-6.10.3 IOException?

Erik de Castro Lopo mle+hs at mega-nerd.com
Sat Jun 13 19:58:06 EDT 2009


Hi all,

I have some code (basically from http://sequence.complete.org/node/257)
which  has:

    import Control.Exception (finally, catch, Exception (..), IOException)

...

    handler (IOException e)
        | isEOFError e = return ()

but gch-6.10.3 still says

    Not in scope: data constructor `IOException'

Someone smack me with the cluestick please :-).

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/


More information about the Beginners mailing list