[commit: ghc] master: Small refactor of getRuntimeRep (a6c448b)

git at git.haskell.org git at git.haskell.org
Tue Aug 29 08:37:53 UTC 2017


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

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

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

commit a6c448b403dbe8720178ca82100f34baedb1f47e
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Mon Aug 28 17:33:59 2017 +0100

    Small refactor of getRuntimeRep
    
    Instead of using a string argument, use HasDebugCallStack.
    (Oddly, some functions were using both!)
    
    Plus, use getRuntimeRep rather than getRuntimeRep_maybe when
    if the caller panics on Nothing. Less code, and a better debug
    stack.


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

a6c448b403dbe8720178ca82100f34baedb1f47e
 compiler/coreSyn/MkCore.hs          |  4 +-
 compiler/deSugar/DsBinds.hs         |  6 +--
 compiler/deSugar/DsExpr.hs          |  2 +-
 compiler/deSugar/DsUtils.hs         |  4 +-
 compiler/iface/TcIface.hs           |  2 +-
 compiler/prelude/TysWiredIn.hs      |  4 +-
 compiler/typecheck/TcExpr.hs        |  2 +-
 compiler/typecheck/TcHsType.hs      |  4 +-
 compiler/typecheck/TcInstDcls.hs    |  3 +-
 compiler/typecheck/TcRnDriver.hs    |  2 +-
 compiler/types/Type.hs              | 80 +++++++++++++++++--------------------
 compiler/vectorise/Vectorise/Exp.hs |  3 +-
 12 files changed, 55 insertions(+), 61 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 a6c448b403dbe8720178ca82100f34baedb1f47e


More information about the ghc-commits mailing list