[Proposal] add view function for NPlusKPatterns

Stijn van Drongelen rhymoid at gmail.com
Mon Sep 30 15:01:09 UTC 2013


On Mon, Sep 30, 2013 at 5:00 PM, Henning Thielemann <
schlepptop at henning-thielemann.de> wrote:

> Am 30.09.2013 16:56, schrieb David Luposchainsky:
>
>> On 2013-09-30 16:37, Stijn van Drongelen wrote:
>>
>>> I'm working on a desugaring library for Haskell. Desugaring
>>> NPlusKPatterns currently takes up the most code, since a proper
>>> translation involves generating two guards. Meanwhile, most other
>>> pattern-related language extensions are defined in terms of
>>> ViewPatterns, which are trivial to desugar.
>>>
>>> In my laziness to fix this otherwise, I propose that the following
>>> function is added to the Prelude: [...]
>>>
>>
>> 4. "My laziness" and golfing are not very good bases for a proposal.
>>
>
> Stijn, you might add the utility function to a custom library that is
> bundled with your preprocessor.
>

I immediately regret my decision of mailing this proposal to libraries at .
You're right :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130930/e9cdde49/attachment.html>


More information about the Libraries mailing list