[commit: ghc] master: Accurately report usage of newtype data constructors in FFI declarations (c8f4f50)

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/c8f4f50983bbb26b2d753e56ba61f5a307ff412f

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

commit c8f4f50983bbb26b2d753e56ba61f5a307ff412f
Author: Simon Peyton Jones <[email protected]>
Date:   Mon Nov 26 12:05:21 2012 +0000

    Accurately report usage of newtype data constructors in FFI declarations
    
    See Note [Newtype constructor usage in foreign declarations] in TcForeign.
    It's quite non-trivial to say which newtype constructor are used in
    foreign import/export declarations, and I had to do a bit of refactoring
    to achieve it.  (Say hello to the X5 bus from Oxford to Cambridge.)
    It's a bit tiresome, with some more plumbing, but not hard.
    
    Trac #7048 triggered this change.

 compiler/rename/RnNames.lhs       |    6 +-
 compiler/typecheck/TcForeign.lhs  |  164 +++++++++++++++++++-----------------
 compiler/typecheck/TcRnDriver.lhs |   29 ++++++-
 compiler/typecheck/TcRnTypes.lhs  |   38 ++++++---
 4 files changed, 142 insertions(+), 95 deletions(-)


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

    git show c8f4f50983bbb26b2d753e56ba61f5a307ff412f
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.