
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/