[GHC] #2798: Enable "rec" keyword when RecursiveDo is enabled?

Iavor Diatchki iavor.diatchki at gmail.com
Mon Jan 4 14:52:51 EST 2010


Hello,

I hope that it does but I have not installed GHC 6.12 yet.  I was
wondering more how to write new programs that are not restricted to
work only with GHC >= 6.12.1.  Sometimes one can make things portable
with a bit of CPP---not pretty but it works---but, in this case, I
could not think of a good way to do this, so if anyone has ideas...

-Iavor

PS:  I sympathize with the desire to avoid having two ways of doing
the same thing in the long run, but it would have been nice to have
both features in an official release so that we could compare them
both in practice before the one got deprecated.



On Mon, Jan 4, 2010 at 12:43 AM, Simon Peyton-Jones
<simonpj at microsoft.com> wrote:
> Doesn't mdo still work?  With -XRecursiveDo?  It's deprecated, but works fine I think. The whole deprecated thing is to allow old programs to continue to work.
>
> Simon
>
> | -----Original Message-----
> | From: glasgow-haskell-bugs-bounces at haskell.org [mailto:glasgow-haskell-bugs-
> | bounces at haskell.org] On Behalf Of Iavor Diatchki
> | Sent: 04 January 2010 03:37
> | To: glasgow-haskell-bugs at haskell.org
> | Subject: Re: [GHC] #2798: Enable "rec" keyword when RecursiveDo is enabled?
> |
> | Hello,
> | so with these changes, what is the preferred way to write recursive
> | monadic code that will work on GHC < 6.12.1, GHC >= 6.12.1, and Hugs?
> | I guess, one could always fall back to just using "mfix" directly but
> | this seems unfortunate.
> | -Iavor
> |
> |
> |
> | On Sun, Jan 3, 2010 at 5:23 AM, GHC <trac at galois.com> wrote:
> | > #2798: Enable "rec" keyword when RecursiveDo is enabled?
> | > ---------------------------+------------------------------------------------
> | >  Reporter:  nominolo      |          Owner:  igloo
> | >      Type:  task          |         Status:  closed
> | >  Priority:  high          |      Milestone:  6.14.1
> | >  Component:  Compiler      |        Version:  6.11
> | > Resolution:  fixed         |       Keywords:
> | > Difficulty:  Unknown       |             Os:  Unknown/Multiple
> | >  Testcase:                |   Architecture:  Unknown/Multiple
> | >   Failure:  None/Unknown  |
> | > ---------------------------+------------------------------------------------
> | > Changes (by igloo):
> | >
> | >  * status:  new => closed
> | >  * failure:  => None/Unknown
> | >  * resolution:  => fixed
> | >
> | > Comment:
> | >
> | >  It was done for 6.12.1 after all. `RecursiveDo` is deprecated in favour of
> | >  `DoRec`.
> | >
> | > --
> | > Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2798#comment:13>
> | > GHC <http://www.haskell.org/ghc/>
> | > The Glasgow Haskell Compiler
> | > _______________________________________________
> | > Glasgow-haskell-bugs mailing list
> | > Glasgow-haskell-bugs at haskell.org
> | > http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
> | >
> | >
> | _______________________________________________
> | Glasgow-haskell-bugs mailing list
> | Glasgow-haskell-bugs at haskell.org
> | http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
>
>


More information about the Glasgow-haskell-bugs mailing list