Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Equivalent of inheritance in Haskell (Paul Sargent)
2. Re: haskell / prolog (dan portin)
3. Standard Haskell Module Files (Jane Ren)
4. Re: Equivalent of inheritance in Haskell (David Virebayre)
5. Re: Standard Haskell Module Files (Henk-Jan van Tuyl)
----------------------------------------------------------------------
Message: 1
Date: Tue, 21 Dec 2010 01:55:05 +0000
From: Paul Sargent <[email protected]>
Subject: Re: [Haskell-beginners] Equivalent of inheritance in Haskell
To: Richard Mittel <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii
On 20 Dec 2010, at 15:06, Richard Mittel wrote:
> I'm afraid that apologies and humor did not make you seem less "crude," as
> you put it, and your language is too apt to be misunderstood by homosexuals
> and women as unwelcoming. So please exercise more care when posting.
I obviously badly judged the tone of my previous mail, so I want to publicly
apologise for it. There was no ill-intent behind it to any group of people, and
I didn't mean it as a commentary on what I believed to be right or wrong, more
just what law makers seem to be prescribing in certain parts of the world.
I have a feeling that some malice was attributed to it that, truly / honestly
isn't there. Just a badly made joke on sensitive ground. Obviously not suitable
for the list.
Even if I only offended one person, that one too many. Lesson learned. Sorry.
------------------------------
Message: 2
Date: Mon, 20 Dec 2010 22:09:26 -0800
From: dan portin <[email protected]>
Subject: Re: [Haskell-beginners] haskell / prolog
To: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
Apparently the answer is to `:set FlexibleContexts` in GHCi in addition to
enabling the language extension in a source file. I was unaware it wasn't
enabled by default on interpreting the source.
On Mon, Dec 20, 2010 at 5:54 PM, dan portin <[email protected]> wrote:
> I recently discovered that class and instance declarations in Haskell are
> Horn clauses. So I encoded the arithmetic operations from the first chapter
> of *Art of Prolog* into Haskell, in the standar
>
> fac(0,s(0)).
> fac(s(N),F) :- fac(N,X), mult(s(N),X,F).
>
> class Fac x y | x -> y
> instance Fac Z (S Z)
> instance (Fac n x, Mult (S n) x f) => Fac (S n) f
>
> I don't understand, however, to make Haskell instantiate values for
> variables in a proof. I.e., I don't understand what the Haskell equivalent
> of
>
> ?- fac(X,Y)
>
> would be for some value of X.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20101220/1a8d8720/attachment-0001.htm>
------------------------------
Message: 3
Date: Tue, 21 Dec 2010 01:11:38 -0800
From: Jane Ren <[email protected]>
Subject: [Haskell-beginners] Standard Haskell Module Files
To: "[email protected]" <[email protected]>
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="us-ascii"
Hi,
Could someone tell me where I can get the standard Haskell module files such as
source code for the Data module?
Thanks
------------------------------
Message: 4
Date: Tue, 21 Dec 2010 10:27:02 +0100
From: David Virebayre <[email protected]>
Subject: Re: [Haskell-beginners] Equivalent of inheritance in Haskell
To: Paul Sargent <[email protected]>
Cc: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset=UTF-8
2010/12/21 Paul Sargent <[email protected]>:
> On 20 Dec 2010, at 15:06, Richard Mittel wrote:
>> I'm afraid that apologies and humor did not make you seem less "crude," as
>> you put it, and your language is too apt to be misunderstood by homosexuals
>> and women as unwelcoming. ?So please exercise more care when posting.
> I obviously badly judged the tone of my previous mail, so I want to publicly
> apologise for it. There was
I fail to see where Paul's email was offensive enough that an apology
was needed.
At worst, if there was something in bad taste, I think one can give
the author the benefit of the doubt unless he repeately posts in bad
taste.
I also think that if we should care for all the things that could be
misunderstood, then it might not be worth it trying to contribute and
help just to be asked to exercise more care when posting.
My two cents.
------------------------------
Message: 5
Date: Tue, 21 Dec 2010 11:06:00 +0100
From: "Henk-Jan van Tuyl" <[email protected]>
Subject: Re: [Haskell-beginners] Standard Haskell Module Files
To: "[email protected]" <[email protected]>, "Jane Ren"
<[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=iso-8859-15; format=flowed;
delsp=yes
On Tue, 21 Dec 2010 10:11:38 +0100, Jane Ren <[email protected]> wrote:
> Hi,
>
> Could someone tell me where I can get the standard Haskell module files
> such as source code for the Data module?
From Hackage:
http://hackage.haskell.org/package/base
Regards,
Henk-Jan van Tuyl
--
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
--
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 30, Issue 40
*****************************************