[commit: ghc] ghc-8.2: Small refactor of getRuntimeRep (cbf4723)
git at git.haskell.org
git at git.haskell.org
Tue Aug 29 19:03:05 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-8.2
Link : http://ghc.haskell.org/trac/ghc/changeset/cbf472384b5b583c24d1a1a32f3fa58d4f1501b1/ghc
>---------------------------------------------------------------
commit cbf472384b5b583c24d1a1a32f3fa58d4f1501b1
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.
(cherry picked from commit a6c448b403dbe8720178ca82100f34baedb1f47e)
>---------------------------------------------------------------
cbf472384b5b583c24d1a1a32f3fa58d4f1501b1
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 cbf472384b5b583c24d1a1a32f3fa58d4f1501b1
More information about the ghc-commits
mailing list