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 <simo...@microsoft.com> 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 _______________________________________________ Cvs-ghc mailing list Cvs-ghc@haskell.org http://www.haskell.org/mailman/listinfo/cvs-ghc