#4148: improve new recursive do syntax
---------------------------------+------------------------------------------
Reporter: guest | Owner:
Type: feature request | Status: patch
Priority: low | Milestone: 7.6.1
Component: Compiler | Version: 6.12.3
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by altaic):
Ah, I'm not suggesting adding more keywords than otherwise proposed; it
seems people are for the most part in agreement that there should be two
keywords. I'm proposing the syntax for segmented recursive `do` to be:
{{{
do srec
...
...
}}}
instead of
{{{
mdo
...
...
}}}
so as to be consistent with the (previously proposed) non-segmented
recursive do
{{{
do rec
...
...
}}}
IOW, (1) bring the functionality of the old `mdo` back but use the syntax
`do srec`, and (2) change `do rec` to not do segmentation. Hope that's
clearer.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4148#comment:31>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs