[Haskell-beginners] ghc-6.10.3 IOException?
Erik de Castro Lopo
mle+hs at mega-nerd.com
Sun Jun 14 00:33:07 EDT 2009
Daniel Fischer wrote:
> a) you only imported the type, not the data constructor(s)
> b) confusingly, the constructor of IOException is IOError:
>
> data IOException
> = IOError {
> ioe_handle :: Maybe Handle, -- the handle used by the action flagging
> -- the error.
> ioe_type :: IOErrorType, -- what it was.
> ioe_location :: String, -- location.
> ioe_description :: String, -- error type specific information.
> ioe_filename :: Maybe FilePath -- filename the error is related to.
> }
> deriving Typeable
>
> instance Exception IOException
Ok, I can see whats wrong, but I still have no idea how to fix it.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
More information about the Beginners
mailing list