Small refactor of getRuntimeRep
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 28 Aug 2017 16:33:59 +0000 (17:33 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Tue, 29 Aug 2017 08:37:11 +0000 (09:37 +0100)
commita6c448b403dbe8720178ca82100f34baedb1f47e
tree957d36a85d5f361c34df5f826e96a2132ce51991
parent8eead4de7c820e602193d6d16acd00faeffa035c
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.
12 files changed:
compiler/coreSyn/MkCore.hs
compiler/deSugar/DsBinds.hs
compiler/deSugar/DsExpr.hs
compiler/deSugar/DsUtils.hs
compiler/iface/TcIface.hs
compiler/prelude/TysWiredIn.hs
compiler/typecheck/TcExpr.hs
compiler/typecheck/TcHsType.hs
compiler/typecheck/TcInstDcls.hs
compiler/typecheck/TcRnDriver.hs
compiler/types/Type.hs
compiler/vectorise/Vectorise/Exp.hs