[commit: ghc] master: Only promote *non-existential* data constructors (8019bc2)

Simon Peyton Jones <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.ghc
Message-ID <[email protected]>
Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/8019bc2cb7b2883bdf0da49ccdc52ecc9e2ad2fc

>---------------------------------------------------------------

commit 8019bc2cb7b2883bdf0da49ccdc52ecc9e2ad2fc
Author: Simon Peyton Jones <[email protected]>
Date:   Fri Oct 19 12:53:21 2012 +0100

    Only promote *non-existential* data constructors
    
    I don't konw how this was left out before; Trac #7347.
    
    In fixing this I did the usual round of refactoring.  In particular, I
    cached the fact that a DataCon can be promoted in the DataCon
    itself (the dcPromoted field).

 compiler/basicTypes/DataCon.lhs |   69 ++++++++++++++++++++------------------
 compiler/iface/TcIface.lhs      |    4 +-
 compiler/prelude/TysWiredIn.lhs |    6 ++--
 compiler/types/TyCon.lhs        |    2 +-
 4 files changed, 42 insertions(+), 39 deletions(-)


Diff suppressed because of size. To see it, use:

    git show 8019bc2cb7b2883bdf0da49ccdc52ecc9e2ad2fc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.