backward compatibility
Ian Lynagh
igloo at earth.li
Thu Jan 20 12:38:15 CET 2011
On Thu, Jan 20, 2011 at 08:14:29AM +0000, Max Bolingbroke wrote:
> On 20 January 2011 02:47, John Meacham <john at repetae.net> wrote:
> > Allowing this was a specific feature that was included in ghc on
> > purpose (as well as the relaxed if/then layout rule in do statements)
> > So this is definitely a regression.
>
> Ian split this out in this patch:
> http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=20101124220507-3fd76-26e1672e163f309adf8992fd402df1214b7db6dd.gz
>
> (You can see the tests here:
> http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=testsuite;a=darcs_commitdiff;h=20101125012715-3fd76-fb009b5a590d609380c894261e651710f86c0430.gz)
>
> However, when he split it out he made sure that it was still turned on
> by default unless the package explicitly requested Haskell 98 or 2010
> compatibility (with -XHaskell98 or -XHaskell2010) - so I'm not sure
> why it should cause breakage. I don't have a HEAD build around so I
> can't find out for myself at the moment.
Yes, it's still on in GHC by default, but Cabal specifies Haskell98 if a
language isn't given in the .cabal file.
network probably wants to give NondecreasingIndentation as an extension
if impl(ghc >= 7.1).
Thanks
Ian
More information about the Glasgow-haskell-users
mailing list