Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/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: Usage of $ (Rein Henrichs)
2. Re: Usage of $ (Mike Meyer)
3. Re: Usage of $ (Rein Henrichs)
----------------------------------------------------------------------
Message: 1
Date: Mon, 08 Jun 2015 19:28:50 +0000
From: Rein Henrichs <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Usage of $
Message-ID:
<cajp6g8ysosy4oqv4cxpjnspqlbf8evn_r4oaw7wpp0h2c73...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
You said,
> s mp $ n - 1 parses as s mp (n - 1)
> s mp n - 1 parses as (s mp n) - 1
This is not how they parse. This is how they *evaluate*. A description of
how they *parse* would have included the ($) token in a parse tree.
This mistake is what lead to our confusion and your rudeness hasn't helped
to clarify things. Rather than pretending that we're idiots for not
understanding what you meant, it would have been better if you had just
said what you meant.
On Mon, Jun 8, 2015 at 12:18 PM Mike Meyer <[email protected]> wrote:
> The OP's problem wasn't with the semantics of $. The OP's problem was that
> the two expression had different parse trees that gave him different
> results when evaluated. So not only was there parsing happening here, but
> it was the root cause of his confusion.
>
> Given that the output of GHC's parser was the cause of the confusion, I
> couldn't think of anything else you might have meant that made sense in
> context.
>
> On Mon, Jun 8, 2015 at 2:06 PM, Rein Henrichs <[email protected]>
> wrote:
>
>> Of course not. What a silly thing to suggest. I'm saying that parsing is
>> not relevant to the behavior of ($). The parser can't tell the *semantic*
>> difference between $ and any other operator.
>> On Mon, Jun 8, 2015 at 11:02 AM Mike Meyer <[email protected]> wrote:
>>
>>> Are you saying that GHC doesn't have a haskell parser?
>>> On Mon, Jun 8, 2015 at 12:06 PM, Rein Henrichs <[email protected]>
>>> wrote:
>>>
>>>> The point is that there is no parsing happening here. Just evaluation.
>>>>
>>> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150608/79a039d9/attachment-0001.html>
------------------------------
Message: 2
Date: Mon, 8 Jun 2015 14:30:49 -0500
From: Mike Meyer <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Usage of $
Message-ID:
<CAD=7U2BNn=-=W0tXVY9YNOg=G=i4egmjpy_yp5wajbkdoee...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
My apologies if I came off as rude. That was not my intent.
On Mon, Jun 8, 2015 at 2:28 PM, Rein Henrichs <[email protected]>
wrote:
> You said,
>
> > s mp $ n - 1 parses as s mp (n - 1)
> > s mp n - 1 parses as (s mp n) - 1
>
> This is not how they parse. This is how they *evaluate*. A description of
> how they *parse* would have included the ($) token in a parse tree.
>
> This mistake is what lead to our confusion and your rudeness hasn't helped
> to clarify things. Rather than pretending that we're idiots for not
> understanding what you meant, it would have been better if you had just
> said what you meant.
>
> On Mon, Jun 8, 2015 at 12:18 PM Mike Meyer <[email protected]> wrote:
>
>> The OP's problem wasn't with the semantics of $. The OP's problem was
>> that the two expression had different parse trees that gave him different
>> results when evaluated. So not only was there parsing happening here, but
>> it was the root cause of his confusion.
>>
>> Given that the output of GHC's parser was the cause of the confusion, I
>> couldn't think of anything else you might have meant that made sense in
>> context.
>>
>> On Mon, Jun 8, 2015 at 2:06 PM, Rein Henrichs <[email protected]>
>> wrote:
>>
>>> Of course not. What a silly thing to suggest. I'm saying that parsing
>>> is not relevant to the behavior of ($). The parser can't tell the
>>> *semantic* difference between $ and any other operator.
>>> On Mon, Jun 8, 2015 at 11:02 AM Mike Meyer <[email protected]> wrote:
>>>
>>>> Are you saying that GHC doesn't have a haskell parser?
>>>> On Mon, Jun 8, 2015 at 12:06 PM, Rein Henrichs <[email protected]
>>>> > wrote:
>>>>
>>>>> The point is that there is no parsing happening here. Just evaluation.
>>>>>
>>>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150608/24cc0c66/attachment-0001.html>
------------------------------
Message: 3
Date: Mon, 08 Jun 2015 19:36:18 +0000
From: Rein Henrichs <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Usage of $
Message-ID:
<cajp6g8xdb8h3ff9apnbdnyocls9xtdqmkeonfcyybycdqno...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I can't imagine that you actually believed in good faith that I would be
confused about whether a Haskell compiler would contain a Haskell parser.
On Mon, Jun 8, 2015 at 12:31 PM Mike Meyer <[email protected]> wrote:
> My apologies if I came off as rude. That was not my intent.
>
> On Mon, Jun 8, 2015 at 2:28 PM, Rein Henrichs <[email protected]>
> wrote:
>
>> You said,
>>
>> > s mp $ n - 1 parses as s mp (n - 1)
>> > s mp n - 1 parses as (s mp n) - 1
>>
>> This is not how they parse. This is how they *evaluate*. A description of
>> how they *parse* would have included the ($) token in a parse tree.
>>
>> This mistake is what lead to our confusion and your rudeness hasn't
>> helped to clarify things. Rather than pretending that we're idiots for not
>> understanding what you meant, it would have been better if you had just
>> said what you meant.
>>
>> On Mon, Jun 8, 2015 at 12:18 PM Mike Meyer <[email protected]> wrote:
>>
>>> The OP's problem wasn't with the semantics of $. The OP's problem was
>>> that the two expression had different parse trees that gave him different
>>> results when evaluated. So not only was there parsing happening here, but
>>> it was the root cause of his confusion.
>>>
>>> Given that the output of GHC's parser was the cause of the confusion, I
>>> couldn't think of anything else you might have meant that made sense in
>>> context.
>>>
>>> On Mon, Jun 8, 2015 at 2:06 PM, Rein Henrichs <[email protected]>
>>> wrote:
>>>
>>>> Of course not. What a silly thing to suggest. I'm saying that parsing
>>>> is not relevant to the behavior of ($). The parser can't tell the
>>>> *semantic* difference between $ and any other operator.
>>>> On Mon, Jun 8, 2015 at 11:02 AM Mike Meyer <[email protected]> wrote:
>>>>
>>>>> Are you saying that GHC doesn't have a haskell parser?
>>>>> On Mon, Jun 8, 2015 at 12:06 PM, Rein Henrichs <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> The point is that there is no parsing happening here. Just
>>>>>> evaluation.
>>>>>>
>>>>> _______________________________________________
>>> Beginners mailing list
>>> [email protected]
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>>
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>>
>>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20150608/efb5e48d/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 84, Issue 13
*****************************************