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 much

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 i

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] 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 com

[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 is

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 appropriat

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 p

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 p

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 same

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] 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 everybod

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 4/

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 http://www.haskell.o

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. C

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

[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] 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 me

[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 website[2