#3377: [Patch] Support Python-style tuple sections
---------------------------------+------------------------------------------
    Reporter:  batterseapower    |        Owner:                  
        Type:  feature request   |       Status:  closed          
    Priority:  normal            |    Milestone:                  
   Component:  Compiler          |      Version:  6.10.4          
    Severity:  normal            |   Resolution:  fixed           
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Changes (by simonpj):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 OK, it's done.  Thanks to Max for doing the first version.
 {{{
 Wed Jul 22 23:38:59 PDT 2009  simo...@microsoft.com
   * Add tuple sections as a new feature
   Ignore-this: d42a26fc1efff112b852b5c1135c1746

   This patch adds tuple sections, so that

         (x,,z)  means   \y -> (x,y,z)

   Thanks for Max Bolingbroke for doing the hard work.

   In the end, instead of using two constructors in HsSyn, I used
   just one (still called ExplicitTuple) whose arguments can be
         Present (LHsExpr id)
   or    Missing PostTcType

   While I was at it, I did a bit of refactoring too.


     M ./compiler/deSugar/Coverage.lhs -6 +10
     M ./compiler/deSugar/DsArrows.lhs -10 +5
     M ./compiler/deSugar/DsExpr.lhs -10 +20
     M ./compiler/deSugar/DsListComp.lhs -2 +2
     M ./compiler/deSugar/DsMeta.hs -2 +4
     M ./compiler/deSugar/DsUtils.lhs -19 +13
     M ./compiler/deSugar/Match.lhs -15 +18
     M ./compiler/hsSyn/Convert.lhs -1 +1
     M ./compiler/hsSyn/HsExpr.lhs -23 +38
     M ./compiler/hsSyn/HsUtils.lhs -5 +17
     M ./compiler/main/DynFlags.hs +2
     M ./compiler/parser/Parser.y.pp -10 +27
     M ./compiler/parser/RdrHsSyn.lhs -3 +4
     M ./compiler/rename/RnExpr.lhs -5 +17
     M ./compiler/rename/RnSource.lhs -1
     M ./compiler/typecheck/TcExpr.lhs -17 +27
     M ./compiler/typecheck/TcGenDeriv.lhs -8 +6
     M ./compiler/typecheck/TcHsSyn.lhs -10 +8
     M ./compiler/typecheck/TcTyClsDecls.lhs -1 +1
     M ./compiler/types/Generics.lhs -4 +4
     M ./compiler/types/TypeRep.lhs +1
     M ./docs/users_guide/glasgow_exts.xml +38
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3377#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to