Proposal: Add ioeGetLocation, ioeSetLocation to System/IO/Error.hs

Ian Lynagh igloo at earth.li
Sun Mar 4 08:12:16 EST 2007


This is a proposal to add ioeGetLocation and ioeSetLocation to
System/IO/Error.hs.

The functions are visible only to GHC and hugs; nhc is already missing
some of this family of functions.

The meat of the patch is

+ioeGetLocation        :: IOError -> String
+ioeGetLocation ioe = ioe_location ioe

+ioeSetLocation    :: IOError -> String      -> IOError
+ioeSetLocation    ioe str      = ioe{ ioe_location = str }


Deadline: About a week after discussion stops.


Thanks
Ian



More information about the Libraries mailing list