Add rebindable syntax for if-then-else
authorsimonpj@microsoft.com <unknown>
Fri, 22 Oct 2010 14:34:00 +0000 (14:34 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 22 Oct 2010 14:34:00 +0000 (14:34 +0000)
commit4e0c994eb1613c62e94069642d7acdb2e69b773b
tree2cafc28f98f8a22d34642bece27b2294cbdbafc8
parent79723c6692289fd01a2d0548d03a6547eae41ecb
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
21 files changed:
compiler/cmm/CmmParse.y
compiler/deSugar/Coverage.lhs
compiler/deSugar/DsArrows.lhs
compiler/deSugar/DsExpr.lhs
compiler/deSugar/DsMeta.hs
compiler/deSugar/Match.lhs
compiler/hsSyn/Convert.lhs
compiler/hsSyn/HsExpr.lhs
compiler/hsSyn/HsUtils.lhs
compiler/main/DynFlags.hs
compiler/parser/Parser.y.pp
compiler/rename/RnEnv.lhs
compiler/rename/RnExpr.lhs
compiler/rename/RnNames.lhs
compiler/typecheck/Inst.lhs
compiler/typecheck/TcArrows.lhs
compiler/typecheck/TcExpr.lhs
compiler/typecheck/TcHsSyn.lhs
compiler/typecheck/TcRnTypes.lhs
docs/users_guide/flags.xml
docs/users_guide/glasgow_exts.xml