
30 Sep
2013
30 Sep
'13
11 a.m.
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.