
22 Aug
2002
22 Aug
'02
9:54 a.m.
At 2002-08-21 02:34, Simon Marlow wrote:
I'd go for hGetWord8, hLookAheadWord8 and so on, but it's not a big deal.
Yeah you're right. Plus I got confused with lists and arrays.
hLazyGetArray :: Handle -> IO [Word8]
Other suggestions: hGetContentsRaw, hGetWord8Contents
hGetContents is the only lazy IO function isn't it? I don't really approve of lazy IO and I was hoping to stigmatise the name 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
8354
Age (days ago)
8354
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow