cvs commit: fptools/libraries/base/System/IO Error.hs

Simon Marlow simonmar@microsoft.com
Wed, 8 Jan 2003 14:08:57 -0000


> On Wed, Jan 08, 2003 at 05:06:30AM -0800, Simon Marlow wrote:
> > simonmar    2003/01/08 05:06:30 PST
> >=20
> >   Modified files:
> >     libraries/base/System/IO Error.hs=20
> >   Log:
> >   Alter the order of the argument to annotateIOError to=20
> match mkIOError
> >   and the FFI spec.
>=20
> Also, should not the first line of
>=20
> annotateIOError (IOError hdl errTy _ str path) loc ohdl opath =3D
>   IOError (hdl `mplus` ohdl) errTy loc str (path `mplus` opath)
>   where
>     Nothing `mplus` ys =3D ys
>     xs      `mplus` _  =3D xs
>=20
> be
>=20
> annotateIOError (IOError ohdl errTy _ str opath) loc hdl path =3D
>=20
> so the new uniformly overrides the old (as implied by the spec)?

Yes indeed, thanks.

Simon