Re: simple binary IO proposition.

2000-09-04 Thread Manuel M. T. Chakravarty
John Meacham <[EMAIL PROTECTED]> wrote, >I don't have a problem with all the character encoding infrastructure >and whatnot, but it makes sense logically in an Language API to >provide access to the lowest level of IO that is possible, whether the >more advanced operations themsel

lazy file reading in H98

2000-09-04 Thread Manuel M. T. Chakravarty
In an assignment, in my class, we came across a lack of specification of the behaviour of `Prelude.readFile' and `IO.hGetContents' and IMHO also a lack of functionality. As both operations read a file lazily, subsequent writes to the same file are potentially disastrous. In this assignment, the

ICFP Contest

2000-09-04 Thread Shiva
Hi, for anybody interrested: The complete source and a report about our ICFP Programming Contest entry (in Haskell...) is now finally online at http://www.fmi.uni-passau.de/~krauth/ Have fun ;) cya, Shiva of Kolor

Re: Library for URLs?

2000-09-04 Thread Florian Hars
Simon Marlow <[EMAIL PROTECTED]> writes: > URI is an instance of Show, so you can just apply 'show' to get a string. You are one of those persons who eat the cooking book, are you? He wanted a string representation of the resource identified by the URI. :-) Yours, Florian

Re: simple binary IO proposition.

2000-09-04 Thread Marcin 'Qrczak' Kowalczyk
4 Sep 2000 14:22:52 GMT, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> pisze: > > Perhaps this is too much complication given that the underlying > > implementations are so similar, but it seems nice. > > Some functions would have to be overloaded (not polymorphic). > Hopefully I will manage to

RE: Library for URLs?

2000-09-04 Thread Simon Marlow
> Yep, the GHC stuff is a gold mine, and one which I frequent all to > rarely (mostly using Hugs for development). Unfortunately, I can't > find any URI -> String functions - but I could probably build it on > top of URI and Socket (great stuff btw, just what I (might) need) URI is an instance o

Re: simple binary IO proposition.

2000-09-04 Thread Marcin 'Qrczak' Kowalczyk
Mon, 4 Sep 2000 06:08:11 -0700, Simon Marlow <[EMAIL PROTECTED]> pisze: > So: a handle would either be no-encoding, in which case you can > use hGetByte and friends, or it would have an encoding in which > case you can use hGetChar and friends. I assume that using a wrong version would throw an

Re: Library for URLs?

2000-09-04 Thread Ketil Malde
Simon Marlow <[EMAIL PROTECTED]> writes: > The URI library in hslibs contains code for parsing and manipulating URIs > (URI is a generalised URL). See: > http://www.haskell.org/ghc/docs/ Yep, the GHC stuff is a gold mine, and one which I frequent all to rarely (mostly using Hugs for deve

RE: simple binary IO proposition.

2000-09-04 Thread Simon Marlow
> "Incorrect" UTF-8 in Chars is seen only by the conversion engine and > sometimes by low-level I/O code. ... and by the application if it inadvertently specifies "no encoding" when the source is actually encoded. I think I agree with John here - specifying "no encoding" on a Handle shouldn't yi

RE: Library for URLs?

2000-09-04 Thread Simon Marlow
Keith Malde writes: > Apologies for not bringing up heavy theoretical issues, but > is there a > library routine for retrieveing URLs? I need to digest some > web pages > and extract a bit of data from them, and I've munged together > a rather > naïve XML (and soon HTML) parser[0], but I b

Re: simple binary IO proposition.

2000-09-04 Thread Marcin 'Qrczak' Kowalczyk
4 Sep 2000 08:12:14 GMT, Marcin 'Qrczak' Kowalczyk <[EMAIL PROTECTED]> pisze: > I will check how would it look like. Maybe it's not that bad... Seems that it does not make much sense unless Handles are parametrized too. (And this would be IMHO too ugly. Enough that Posix has its Fd.) Assume tha

Re: simple binary IO proposition.

2000-09-04 Thread Marcin 'Qrczak' Kowalczyk
Sun, 3 Sep 2000 11:58:40 -0700, John Meacham <[EMAIL PROTECTED]> pisze: > * program determinism (soundness): the goal is to write one program, >guaranteed to produce the exact same byte output for a given byte >stream input regardless of compiler/platform it is run on. if >

Haskell Workshop

2000-09-04 Thread gmh
Dear all, The Haskell Workshop in Montreal on 17th September is now only a couple of weeks away. If you'd like to attend but haven't yet registered, please do so as soon as possible. For further details, see: http://www.cs.nott.ac.uk/~gmh/hw00.html In addition to longer presentations on ac

Library for URLs?

2000-09-04 Thread Ketil Malde
Hi, Apologies for not bringing up heavy theoretical issues, but is there a library routine for retrieveing URLs? I need to digest some web pages and extract a bit of data from them, and I've munged together a rather naïve XML (and soon HTML) parser[0], but I bet somebody, somewhere has a fun