Re: Ptr and ForeignPtr Questions

2001-09-21 Thread Manuel M. T. Chakravarty
Ashley Yakeley [EMAIL PROTECTED] wrote, At 2001-09-20 19:32, Manuel M. T. Chakravarty wrote: What I meant with the remark that you quote is that if you would use foreign import foo :: Ptr Int - IO Float with float foo (float *x) { return *x; } the system will not

Re: Ptr and ForeignPtr Questions

2001-09-21 Thread Manuel M. T. Chakravarty
Ashley Yakeley [EMAIL PROTECTED] wrote, At 2001-09-21 01:39, Manuel M. T. Chakravarty wrote: That's ok. All I am saying is that the FFI doesn't ensure any concistency between the Haskell and the C type. Well it can't can it? There's no type information in object-code symbols (unless

unterminated {-

2001-09-21 Thread George Russell
Seems to me it would make more sense for the message .hs:214: unterminated `{-' message to tell me where the {- is, rather than where the EOF is. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED]

Re: Alternative Design for Finalisation

2001-09-21 Thread Ashley Yakeley
At 2001-09-21 09:40, Marcin 'Qrczak' Kowalczyk wrote: (apologies for the different spelling of finalize - apparently both are correct and I randomly settled on the 'z' version some time ago). I guess 's' is British and 'z' is American. Chambers (of Cambridge, England) has both. -- Ashley

GHC 5.02 is released

2001-09-21 Thread Julian Seward (Intl Vendor)
The (Interactive) Glasgow Haskell Compiler -- version 5.02 We are pleased to announce a new major release of the Glasgow Haskell Compiler (GHC), version 5.02.

Re: Student Programming Projects

2001-09-21 Thread Johannes Waldmann
Next Semester, I am supposed to teach a short course in Haskell. Can anyone recommend interesting programming projects which can be completed in about a month? Thank you very much. apart from pure programming exercise (see Haskell textbooks http://haskell.org/bookshelf/) here are a few

Re: Student Programming Projects

2001-09-21 Thread Yoann Padioleau
Johannes Waldmann [EMAIL PROTECTED] writes: Next Semester, I am supposed to teach a short course in Haskell. Can anyone recommend interesting programming projects which can be completed in about a month? Thank you very much. apart from pure programming exercise (see Haskell textbooks

Re: Student Programming Projects

2001-09-21 Thread D. Tweed
Next Semester, I am supposed to teach a short course in Haskell. Can anyone recommend interesting programming projects which can be completed in about a month? Thank you very much. This doesn't come from direct experience and you don't specify what the students will already know, whether

Re: Prelude and (:) and []((:), []) bugs?

2001-09-21 Thread Marcin 'Qrczak' Kowalczyk
Thu, 20 Sep 2001 13:32:54 +0100, Simon Marlow [EMAIL PROTECTED] pisze: (:) is allowed in an export list; it is just a normal operator. Not quite, it's a reservedop. Notice that a colon by itself, :, is reserved solely for use as the Haskell list constructor; this makes its treatment uniform

Re: Prelude and (:) and []((:), []) bugs?

2001-09-21 Thread Marcin 'Qrczak' Kowalczyk
20 Sep 2001 12:37:36 -0600, Alastair David Reid [EMAIL PROTECTED] pisze: Ah, I forgot that you can't export a constructor on its own. You can't? I probably knew this once but looking at it now, it seems kinda surprising. Haskell's module system is supposed to be just namespace

Haskell Communities Survey - Call for Contacts (update)

2001-09-21 Thread C.Reinke
First, a big thanks to those of you who immediately volunteered to act as contact persons to their communities. That means that five of the areas are already covered. *** *** keep those contact offers coming!-) ***

Re: Student Programming Projects

2001-09-21 Thread John Meacham
A standard program I usually write to test out a new language is a simple ray-tracer, the algorithms and theory are pretty easy, and you can provide them with the low level vector manipulation code. I imagine students also will enjoy the oprotunity to create pretty pictures. John On Fri,

RE: Prelude and (:) and []((:), []) bugs?

2001-09-21 Thread Simon Peyton-Jones
It's hard to distinguish a constructor from a class in an export list. S | -Original Message- | From: Alastair David Reid [mailto:[EMAIL PROTECTED]] | Sent: 20 September 2001 19:38 | To: Simon Marlow | Cc: Ian Lynagh; [EMAIL PROTECTED]; [EMAIL PROTECTED] | Subject: Re: Prelude and (:)

GHC 5.02 is released

2001-09-21 Thread Julian Seward (Intl Vendor)
The (Interactive) Glasgow Haskell Compiler -- version 5.02 We are pleased to announce a new major release of the Glasgow Haskell Compiler (GHC), version 5.02.

Socket library from hslibs

2001-09-21 Thread Chris Webb
For simple networking, I usually find that the simple Socket interface from hslibs does everything I need, except that I always need to import sClose from SocketPrim as well, so I can close the sockets I open. Tidying up some old code this morning, I was wondering: is the absence of sClose in the

RE: Socket library from hslibs

2001-09-21 Thread Simon Marlow
Chris Webb writes: For simple networking, I usually find that the simple Socket interface from hslibs does everything I need, except that I always need to import sClose from SocketPrim as well, so I can close the sockets I open. Tidying up some old code this morning, I was wondering: is the