Fri Oct 22 07:34:00 PDT 2010 [email protected]
* Add rebindable syntax for if-then-else
There are two main changes
* New LANGUAGE option RebindableSyntax, which implies NoImplicitPrelude
* if-the-else becomes rebindable, with function name "ifThenElse"
(but case expressions are unaffected)
Thanks to Sam Anklesaria for doing most of the work here
M ./compiler/cmm/CmmParse.y -2 +2
M ./compiler/deSugar/Coverage.lhs -2 +2
M ./compiler/deSugar/DsArrows.lhs -9 +15
M ./compiler/deSugar/DsExpr.lhs -2 +8
M ./compiler/deSugar/DsMeta.hs -2 +2
M ./compiler/deSugar/Match.lhs -1 +1
M ./compiler/hsSyn/Convert.lhs -2 +2
M ./compiler/hsSyn/HsExpr.lhs -8 +19
M ./compiler/hsSyn/HsUtils.lhs -2 +5
M ./compiler/main/DynFlags.hs +4
M ./compiler/parser/Parser.y.pp -1 +1
M ./compiler/rename/RnEnv.lhs -5 +5
M ./compiler/rename/RnExpr.lhs -8 +12
M ./compiler/rename/RnNames.lhs -1 +1
M ./compiler/typecheck/Inst.lhs -2 +2
M ./compiler/typecheck/TcArrows.lhs -6 +12
M ./compiler/typecheck/TcExpr.lhs -5 +15
M ./compiler/typecheck/TcHsSyn.lhs -9 +7
M ./compiler/typecheck/TcRnTypes.lhs +2
M ./docs/users_guide/flags.xml +6
M ./docs/users_guide/glasgow_exts.xml -2 +10
View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=20101022143400-1287e-746a83b4269744bb54177753c8ff67bec542b46c.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc