Re: Instance checking and phantom types

2003-09-15 Thread Sven Panne
Nick Name wrote: Got it ;) Thanks for prompt reply. What does should always be explicit mean? Is there a notion of explicit context that I should know? What I meant was the fact that you always have to write down *all* contexts involved in a type signature. Nothing is inherited under the hood by

Re: compiling concurrent haskell with ghc

2003-07-28 Thread Sven Panne
Dennis Sidharta wrote: [ problems with concurrent Haskell ] I can see two problems in your code: * forkIO creates daemon threads, so the program terminates immediately. * Chan is an unbounded channel, so you won't get a ping pong, which is probably what you expected. MVar is your friend here.

Re: FFI Ptr question

2003-07-03 Thread Sven Panne
[EMAIL PROTECTED] wrote: So am I right to draw a picture like this? [...] Basically, yes. Or from the Haskell implementation's view: I don't have a clue what a Ptr really is, but it fits in C's void*. [ 1. 2. ] The requirement for matching allocators and deallocators is not much different

Re: haskell array access

2003-06-26 Thread Sven Panne
Well, part of the answer is definitely that the Haskell program is the *only* one which really uses the array elements. :-) I guess that the compilers for the other languages simply remove the array access from the generated code (gcc definitely does, only an empty loop remains). Another reason is

Re: ObjectIO install

2002-05-10 Thread Sven Panne
Andre W B Furtado wrote: [ -f foo vs. foo trouble ] It's just versionitis again: ghc-pkg from 5.02x doesn't support the -f flag, newer versions do. Guess into which problem I ran for HOpenGL, too. :-) Things like this can keep you busy... Cheers, S.

Re: [HOpenGL] ANNOUNCE: FunGEn-0.1 released!

2002-04-19 Thread Sven Panne
[ Moved from haskell to haskell-cafe ] Cool! :-) I just had a quick test on my Solaris box, and most things went fine. Just some small hints: * The Makefile contains WinDoze CR/LF, which *nix-makes don't really like. * There were uppercase/lowercase mismatches in the file names of

Re: Announcement: new HOpenGL Tutorial

2001-05-30 Thread Sven Panne
[ redirected to haskell-cafe ] Ronald Legere wrote: Looks great! I think the community will really appreciate it. And I extremely appreciate it when other people write documentation for my stuff. :-) Thanks, great job! I will have to 'give it a whirl' myself, if I can ever get HOpenGL

Re: Is there version of Report merged with errata?

2001-05-19 Thread Sven Panne
[EMAIL PROTECTED] wrote: [...] Has anybody got an updated(merged) version? http://research.microsoft.com/~simonpj/haskell98-revised/ Cheers, Sven ___ Haskell-Cafe mailing list [EMAIL PROTECTED]

Re: 'any' and 'all' compared with the rest of the Report

2001-01-23 Thread Sven Panne
Iavor Diatchki wrote: [...] but in practise programs run slower. If "practise" = "simple interpreter", yes. But... this is where i would expect a good compiler to do some optimisation, i.e to remove the need for the intermediate list. TotallyUnbiasedAd Given or = foldr (||) False

<    1   2