Re: [HOpenGL] Re: GLUT copyright violation

2003-03-24 Thread Sven Panne
Ross Paterson wrote: [...] The text you've used is also spread across the manpages included in the glut tarball. I wasn't aware of that. Assuming that makes the manpages part of libglut, they would be covered by the permission Michael Weber mentioned:

OpenGL documentation license [was: GLUT copyright violation]

2003-03-24 Thread Sven Panne
And while we are at this thrilling topic: I'm using the man pages from SGI's OpenGL sample implementation (SI) as a basis for the documentation of the OpenGL part. This is in accordance to SGI's license http://oss.sgi.com/projects/FreeB/ which was confirmed by Jon Leech (see below). The only

unused import not always reported

2003-03-24 Thread Christian Maeder
How is it possible that an unused import warning is not always emitted? Below I get a warning when I recompile everything, but no warning when I only recompile the Main module (that contains the unused import). In fact Main.hi changes. Cheers Christian Compiling GUI.ConvertDevToAbstractGraph

RE: unused import not always reported

2003-03-24 Thread Simon Marlow
How is it possible that an unused import warning is not always emitted? Below I get a warning when I recompile everything, but no warning when I only recompile the Main module (that contains the unused import). In fact Main.hi changes. It could be a bug, but we'll need to reproduce it

Re: COM events with HaskellDirect?

2003-03-24 Thread Sigbjorn Finne
Yes, examples/ie-listen/ in the HDirect distrib demonstrates how to sink events (from IE, in that particular example.) --sigbjorn [btw, the CVS version of HDirect was updated a while ago to work with current versions of GHC Hugs.] - Original Message - From: Paul Steckler [EMAIL

Re: ANNOUNCE: GHC vesrion 5.04.3 released

2003-03-24 Thread Ashley Yakeley
In article [EMAIL PROTECTED], Wolfgang Thaller [EMAIL PROTECTED] wrote: A Mac OS X installer package is now available at http://www.uni-graz.at/imawww/haskell/GHC.5.04.3.dmg It includes profiling libraries (this time, they should work), but not the documentation (use the online docs

AW: simulating dynamic dispatch

2003-03-24 Thread Markus . Schnell
http://research.microsoft.com/~simonpj/papers/hmap/ The technique you describe in that paper is exactly what I was wanting for many times. I often stopped using algebraic data types because of the immense amount of boilerplate I had to introduce. Thanks! But now I have a question regarding

Re: AW: simulating dynamic dispatch

2003-03-24 Thread Steffen Mazanek
Interestingly, when I want hugs to show me the type of fun::(forall a.[a]-Int)-[b]-[c]-Int it tells me: ERROR - Use of fun requires at least 1 argument Why that? At least I have explicitely specified the type. Hmm, ghci behaves properly. But using hugs I get the same error :-(. No idea!

AW: AW: simulating dynamic dispatch

2003-03-24 Thread Markus . Schnell
Thanks! These examples and counterexamples help a lot in understanding. Markus The reason is that sum only works on integer lists, whereas the given type for fun requires that the first argument be a function that works on lists of any type, such as length. If sum were allowed as argument

Polishing the boilerplate: a dis-unsafely safe cast

2003-03-24 Thread oleg
Hello! The paper http://research.microsoft.com/~simonpj/papers/hmap/ by Ralf Laemmel and Simon Peyton Jones gave a reference implementation of a 'cast' function. Here's another implementation: cast:: (Show a, Read b) = a - Maybe b cast = read_as . show where read_as s =

Arbitrary precision reals?

2003-03-24 Thread Tom Pledger
Niall Dalton writes: | Hi, | | Its been a while since I've been using Haskell seriously, so I might simply | have overlooked the answer.. | | Is there an arbitrary precision real number library available for Haskell? | IIRC, atleast GHC uses the GMP library, but only for integers? Hi.

Re: Polishing the boilerplate: a dis-unsafely safe cast

2003-03-24 Thread Hal Daume III
This is getting off-topic, but... I don't like this solution at all :). It is very dependent on read being a true inverse of show, which isn't always the case. Perhaps more importantly though, I don't like the fact that it will readily convert between Int and Float, etc. For instance, in

shortest path with Haskell

2003-03-24 Thread tuyen pham
Hi every one ! I have a big problem with implementation the Dijkstra's shortest path with Haskell .the condition is it must be implemented with priority queue using list (or tree).Any of yo have the code for this ? I really really needs for help !!! thank a lot!! pham