From: Duncan C. <dun...@wo...> - 2007-11-04 02:06:31
|
On Wed, 2007-10-31 at 11:44 -0700, Adam Langley wrote: > -- | Load an image synchonously. > -- > -- * Use this function to load only small images as this call will block. > -- > -- * If an error occurs, the function will return @Left (err,msg)@ where @err@ > -- is the error code and @msg@ is a human readable description > -- of the error. If an error occurs which is not captured by any of > -- those in 'PixbufError', an exception is thrown. > -- > pixbufNewFromFile :: FilePath -> IO Pixbuf > pixbufNewFromFile fname = > > At some point, this appears to have changed from returning an Either > to returning a straight Pixbuf. > > Something is inconsistent somewhere ;) Yep :-) Feel free to send a patch correcting the documentation. You can double check by looking at the code but I think it now throws a 'GError' exception if an error occurs. Duncan |