Word8-Based IO

Simon Marlow simonmar@microsoft.com
Thu, 22 Aug 2002 10:54:02 +0100


> At 2002-08-21 02:34, Simon Marlow wrote:
>=20
> >I'd go for hGetWord8, hLookAheadWord8 and so on, but it's not a big
> >deal.
>=20
> Yeah you're right. Plus I got confused with lists and arrays.
>=20
> >>   hLazyGetArray :: Handle -> IO [Word8]
> >
> >Other suggestions: hGetContentsRaw, hGetWord8Contents
>=20
> hGetContents is the only lazy IO function isn't it? I don't really=20
> approve of lazy IO and I was hoping to stigmatise the name=20
> with "lazy" much as the unsafe functions have "unsafe".

hGetContents, getContents, and readFile are the lazy functions.
Actually I think lazy I/O is highly unsavoury myself, but I'm guessing
there would be strong opposition to changing these names to include the
word "lazy".

Cheers,
	Simon