[Proposal] add view function for NPlusKPatterns
Henning Thielemann
schlepptop at henning-thielemann.de
Mon Sep 30 15:00:06 UTC 2013
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.
More information about the Libraries
mailing list