Replaced throw to throwIO where type is IO

Bas van Dijk v.dijk.bas at
Fri Oct 8 10:59:55 EDT 2010

On Sun, Sep 26, 2010 at 12:28 PM, Simon Marlow <marlowsd at> wrote:
> On 24/09/10 23:20, Bas van Dijk wrote:
>> I just extended the patch with two more throw-to-throwIO replacements
>> in GHC/IO.hs.
> We should be using throwIO rather than throw in an IO context, so if there
> are no objections I'll test and apply the patch.  It's not an API or a
> functionality change, so I don't think the full libraries proposal process
> is warranted here.
> I'm sure none of these are actually bugs, but it's good practice to use
> throwIO.  Unfortunately there's no easy way to get the type system to tell
> us.
> Cheers,
>        Simon

Thanks Simon, I created a ticket for this so we don't forget:


More information about the Libraries mailing list