[GHC] #754: EVACUATED object entered

2006-04-22 Thread GHC
#754: EVACUATED object entered +--- Reporter: [EMAIL PROTECTED] |Owner: Type: bug | Status: new Priority: normal |Milestone: Component:

6.4.2 Build error

2006-04-22 Thread Daniel Fischer
When building 6.4.2 today, make died with ../../ghc/compiler/ghc-inplace -H16m -O -Wall -fffi -Iinclude '-#include HsALUT.h' -cpp -DCALLCONV=ccall -ignore-package ALUT -O -Rghc-timing -fgenerics -package base -package OpenGL -package OpenAL -fgenerics -split-objs-c Sound/ALUT/Version.hs

[Haskell] Haskell.org and Google Summer of Code 2006

2006-04-22 Thread Paolo Martini
Hello everybody, nice to meet you all. Last year I did work on an Haskell project during the first year of the Google Summer of Code programme[1]. I wrote the bindings to the Cairo Vector Graphics library and integrated them in Gtk2Hs. You can see last year's announcement on the

Re: [Haskell] Haskell.org and Google Summer of Code 2006

2006-04-22 Thread Duncan Coutts
On Sat, 2006-04-22 at 16:38 +0200, Paolo Martini wrote: Let me briefly summarize how the project works; it starts with a number of mentoring organizations that support active open source projects. They are required to publish a list of projects for students to apply for, and some

[Haskell] How to avoid both duplicate instances and extraneous instance declarations?

2006-04-22 Thread Robin Bate Boerop
I am having trouble making a type system for my EDSL in Haskell. Can someone help? A simplified description of my problem follows. I have three classes, A, B1, and B2. I want all instances of B1 to be instances of A. I want all instances of B2 to be instances of A. None of the classes

Re: [Haskell] How to avoid both duplicate instances and extraneous instance declarations?

2006-04-22 Thread ihope
On 4/22/06, Robin Bate Boerop [EMAIL PROTECTED] wrote: I am having trouble making a type system for my EDSL in Haskell. Can someone help? A simplified description of my problem follows. I have three classes, A, B1, and B2. I want all instances of B1 to be instances of A. I want all

Re: [Haskell] How to avoid both duplicate instances and extraneous instance declarations?

2006-04-22 Thread Robin Bate Boerop
This does not work. The compiler gives the same error with or without -fallow-overlapping-instances. -- Robin Bate Boerop On 22-Apr-06, at 12:39 PM, ihope wrote: On 4/22/06, Robin Bate Boerop [EMAIL PROTECTED] wrote: I am having trouble making a type system for my EDSL in Haskell. Can

Re: [Haskell] How to avoid both duplicate instances and extraneous instance declarations?

2006-04-22 Thread ihope
On 4/22/06, Robin Bate Boerop [EMAIL PROTECTED] wrote: This does not work. The compiler gives the same error with or without -fallow-overlapping-instances. Just what is the error? ___ Haskell mailing list Haskell@haskell.org

Re: [Haskell] How to avoid both duplicate instances and extraneous instance declarations?

2006-04-22 Thread Robin Bate Boerop
The error given by GHC (with or without the -fallow-overlapping- instances) is question.hs:6:0: Duplicate instance declarations: question.hs:6:0: instance (B1 x) = A x question.hs:7:0: instance (B2 x) = A x -- Robin Bate Boerop On 22-Apr-06, at 1:01 PM, ihope wrote: On

Re: [Haskell] Haskell.org and Google Summer of Code 2006

2006-04-22 Thread Conal Elliott
I have some projects I'd like help with, and I'd enjoy mentoring. Is there any match-making structure yet (even a wiki page) for Haskell mentors and mentees, e.g., listing interest areas and/or specific projects? Cheers, - Conal On 4/22/06, Paolo Martini [EMAIL PROTECTED] wrote: Hello everybody,

Re: [Haskell] How to avoid both duplicate instances and extraneousinstance declarations?

2006-04-22 Thread Gerrit van den Geest
Robin, The following does NOT work, because of a duplicate instance declaration for A: class A a class B1 b1 class B2 b2 instance B1 x = A x instance B2 x = A x -- duplicate instance, won't compile data T = T instance B1 T Yes, this doesn't work and I think there is no GHC extension that

Re: [Haskell] How to avoid both duplicate instances and extraneousinstance declarations?

2006-04-22 Thread Robin Bate Boerop
Gerrit, Thanks for your help. Yes, your suggestion below will allow me to give only an instance declaration for B1 (and get the A declaration for free, if you will). However, I meant to suggest that there were other T's which are not instances of B1 but of B2. I will be back in the

Re: [Haskell] How to avoid both duplicate instances and extraneousinstance declarations?

2006-04-22 Thread Gerrit van den Geest
You want all instances of B1 to be instances of A and all instances of B2 to be instances of A. This means: forall a. B1 a = A a and forall a. B2 a = A a I think this is not possible with type-classes and the type class extensions in Haskell, because the compiler can't construct the

Re: [Haskell] How to avoid both duplicate instances and extraneousinstance declarations?

2006-04-22 Thread Gerrit van den Geest
You want all instances of B1 to be instances of A and all instances of B2 to be instances of A. This means: forall a. B1 a = A a and forall a. B2 a = A a I think this is not possible with type-classes and the type class extensions in Haskell, because the compiler can't construct the

Re: [Haskell] How to avoid both duplicate instances and extraneousinstance declarations?

2006-04-22 Thread Claus Reinke
I have three classes, A, B1, and B2. I want all instances of B1 to be instances of A. I want all instances of B2 to be instances of A. if you mean to ensure that an instance of A should be a pre-requisite for defining instances of B1/B2, then your second approach might be more

[Haskell] Haskell' status summary

2006-04-22 Thread Isaac Jones
Greetings! I'll try to update the Haskell community periodically on the status of the Haskell' language standard. As mentioned previously, we are currently focusing on two topics, concurrency and the class system. If you feel that you have anything important to contribute to those topics, now

Re: [Haskell] How to avoid both duplicate instances and extraneousinstance declarations?

2006-04-22 Thread Robin Bate Boerop
Claus, You have given a very good analysis of the situation. Thank you. I mean to ensure that an instance of A is a necessary consequence of having an instance for either of B1/B2, in your words. Further, in my situation, no data type will be an instance of both B1 and B2. So, the

Re: [Haskell] Haskell.org and Google Summer of Code 2006

2006-04-22 Thread Isaac Jones
Paolo, Thanks for your work in organizing this. Google wants an answer from me by Monday (I seem to be the point of contact). So if you have objections, let us know! Feel free to forward this to anyone you think would want a say in the matter. peace, isaac Paolo Martini [EMAIL PROTECTED]

Re: [Haskell] Haskell.org and Google Summer of Code 2006

2006-04-22 Thread Paolo Martini
Il giorno 22/apr/06, alle ore 23:50, Isaac Jones ha scritto: Paolo, Thanks for your work in organizing this. Google wants an answer from me by Monday (I seem to be the point of contact). So if you have objections, let us know! Feel free to forward this to anyone you think would want a say

Re: [Haskell] Haskell.org and Google Summer of Code 2006

2006-04-22 Thread Paolo Martini
Conal Elliott ha scritto: I have some projects I'd like help with, and I'd enjoy mentoring. Is there any match-making structure yet (even a wiki page) for Haskell mentors and mentees, e.g., listing interest areas and/or specific projects? Cheers, - Conal Hello Conal, Thank you very

need help please[HOpenGL]

2006-04-22 Thread enache alex
hello ; I am learning to use to HOpenGL to complete an asignement for next week and I have some trouble ; I have found a tutorial on the internet ; in that tutorial it was an example of the Rubik's Cube ; anyway ; in that example it was used a function called matrixExcursion ; and when I try to

need help again [loading bitmaps]

2006-04-22 Thread enache alex
hello again ; I am writing again to ask you if you can please show me an example of loading a bitmap on a window; I tried tu use the bitmap function from Graphics.Rendering.OpenGL.GL.Bitmap but it gives me an error ; I've called the function like this : bmp - bitmap (Size (100,100)) (Vertex2

Re: need help again [loading bitmaps]

2006-04-22 Thread Henk-Jan van Tuyl
Hello, I do not know the answer to your question, but I can tell you that sent the message to the wrong mailing list; this mailing list is about the next version of Haskell. If you send your questions to Haskell-cafe (see http://www.haskell.org/mailman/listinfo/haskell-cafe) it is more

[Haskell-cafe] Re: [Haskell] Haskell.org and Google Summer of Code 2006

2006-04-22 Thread Creighton Hogg
Well, now that we've started this discussion I presume it's okay if I ask a few things. I don't know if these are good ideas, but I thought I'd throw them out. Basically, I am a student and would be eligible for the SoC. I'd like to work on something related to numerics support or performance in

[Haskell-cafe] Re: Control.Exceptions and MonadIO

2006-04-22 Thread Brian Hulley
[EMAIL PROTECTED] wrote: Robert Dockins wrote: One additional (very unfortunate) point is that higher-order IO monad combinators will not work on your monad, eg, the ones in Control.Exception. Although that is true in general, for many useful and interesting cases (including ReaderT, the

[Haskell-cafe] need help please [HOpenGL]

2006-04-22 Thread enache alex
hello; I am writing to ask you a thing ; I am writing a little game on Haskell's HOpenGL ; the game isn't much , but I want to make look a little better ; and for that I want to use bitmaps (or textures) ; I don't know very much about this subject ; I've tried to use de bitmap function from

[Haskell-cafe] Haddock seems to generate wrong types in newtype deriving

2006-04-22 Thread Brian Hulley
Hi - I have the following code: data MState = MState -- details omitted type MonadStateMState = MonadState MState -- necessary for Haddock newtype ManagerM a = ManagerM (StateT MState IO a) deriving (Monad, MonadIO, MonadStateMState) which means that ManagerM is

Re: [Haskell-cafe] need help please [HOpenGL]

2006-04-22 Thread Brian Hulley
Hi - You could try something like: import Foreign.Ptr import Foreign.C.String bmp - withCAString C:\1.bmp $ bitmap (Size (100,100)) (Vertex2 0 0) (Vertex2 0 0) and if that doesn't work try withCString or withCWString. I'm assuming that the Ptr a in the docs is supposed to be a pointer to a

Re: [Haskell-cafe] need help please [HOpenGL]

2006-04-22 Thread Brian Hulley
Brian Hulley wrote: Hi - You could try something like: import Foreign.Ptr import Foreign.C.String bmp - withCAString C:\1.bmp $ bitmap (Size (100,100)) (Vertex2 0 0) (Vertex2 0 0) and if that doesn't work try withCString or withCWString. I'm assuming that the Ptr a in the docs is supposed to