[commit: ghc] master: Define DsUtils.mkCastDs and use it (92d2567)

git at git.haskell.org git at git.haskell.org
Thu Jul 30 10:02:17 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/92d2567230e28010e425b47057ccca66d1a9a712/ghc

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

commit 92d2567230e28010e425b47057ccca66d1a9a712
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Wed Jul 29 16:38:44 2015 +0100

    Define DsUtils.mkCastDs and use it
    
    This change avoids a spurious WARNing from mkCast.  In the output of
    the desugarer (only, I think) we can have a cast where the type of the
    expression and cast don't syntactically match, because of an enclosing
    type-let binding.


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

92d2567230e28010e425b47057ccca66d1a9a712
 compiler/coreSyn/CoreUtils.hs | 19 +++++++++++--------
 compiler/deSugar/DsBinds.hs   | 10 +++++-----
 compiler/deSugar/DsCCall.hs   |  6 +++---
 compiler/deSugar/DsUtils.hs   | 27 +++++++++++++++++++++++----
 4 files changed, 42 insertions(+), 20 deletions(-)

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

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 92d2567230e28010e425b47057ccca66d1a9a712


More information about the ghc-commits mailing list