openFile and text mode vs. binary mode

David Roundy droundy@abridgegame.org
Tue, 17 Jun 2003 22:35:23 -0400


On Tue, Jun 10, 2003 at 10:33:53AM +0100, Simon Marlow wrote:
> The question is: is this the interface that we want to expose from
> System.IO?  Personally I have two criticisms: openFileEx is not a
> particularly descriptive name, and I don't see a reason for IOMode to be
> nested inside IOModeEx.  So I'd suggest this instead:
> 
>     openBinaryFile :: FilePath -> IOMode -> IO Handle

Perhaps openFileAs? openBinaryFile sounds a bit like it would only open it
as a binary, whereas in fact it actually gives you the option of opening it
either as binary or as text.
-- 
David Roundy
http://www.abridgegame.org