... | @@ -38,7 +38,7 @@ withForeignPtr fptr (\ptr -> c_memcpy buf ptr size) |
... | @@ -38,7 +38,7 @@ withForeignPtr fptr (\ptr -> c_memcpy buf ptr size) |
|
# Changes to the grammar
|
|
# Changes to the grammar
|
|
|
|
|
|
|
|
|
|
The Haskell report [ defines](https://www.haskell.org/onlinereport/haskell2010/haskellch3.html#x8-220003) the `lexp` nonterminal thus (`*` indicates a rule of interest):
|
|
The Haskell report [defines](https://www.haskell.org/onlinereport/haskell2010/haskellch3.html#x8-220003) the `lexp` nonterminal thus (`*` indicates a rule of interest):
|
|
|
|
|
|
```wiki
|
|
```wiki
|
|
lexp → \ apat1 … apatn -> exp (lambda abstraction, n ≥ 1) *
|
|
lexp → \ apat1 … apatn -> exp (lambda abstraction, n ≥ 1) *
|
... | @@ -157,10 +157,10 @@ Possible modifications to the proposal include: |
... | @@ -157,10 +157,10 @@ Possible modifications to the proposal include: |
|
- Only allow `do` in argument positions, but no other constructs. This has an advantage of making a minimal change to the grammar, while addressing the most common case.
|
|
- Only allow `do` in argument positions, but no other constructs. This has an advantage of making a minimal change to the grammar, while addressing the most common case.
|
|
|
|
|
|
|
|
|
|
This proposal has been extensively discussed on [ haskell-cafe](https://mail.haskell.org/pipermail/haskell-cafe/2015-September/121217.html) and on [ reddit](https://www.reddit.com/r/haskell/comments/447bnw/does_argument_do_have_a_future/).
|
|
This proposal has been extensively discussed on [haskell-cafe](https://mail.haskell.org/pipermail/haskell-cafe/2015-September/121217.html) and on [reddit](https://www.reddit.com/r/haskell/comments/447bnw/does_argument_do_have_a_future/).
|
|
|
|
|
|
|
|
|
|
On the mailing list I see roughly 13 people in favor of the proposal and 12 people against it. Some major opinions (mostly copied from [ bgmari's summary](https://gitlab.haskell.org/ghc/ghc/issues/10843#comment:12)).
|
|
On the mailing list I see roughly 13 people in favor of the proposal and 12 people against it. Some major opinions (mostly copied from [bgmari's summary](https://gitlab.haskell.org/ghc/ghc/issues/10843#comment:12)).
|
|
|
|
|
|
## Pros
|
|
## Pros
|
|
|
|
|
... | | ... | |