Add trace injection
authorDavid Feuer <david.feuer@gmail.com>
Fri, 1 Dec 2017 20:59:24 +0000 (15:59 -0500)
committerDavid Feuer <David.Feuer@gmail.com>
Fri, 1 Dec 2017 20:59:25 +0000 (15:59 -0500)
commit12efb230de40f24e4828734dd46627ebe24416b4
tree0c2e501f006d044aed27a0f90757f457082b549b
parente1fb28384c44fcd29b0e60b9fd44767be22646af
Add trace injection

Add support for injecting runtime calls to `trace` in `DsM`. This
allows the desugarer to add compile-time information to a runtime
trace.

Reviewers: austin, hvr, bgamari

Reviewed By: bgamari

Subscribers: carter, thomie, rwbarton

Differential Revision: https://phabricator.haskell.org/D4162
compiler/deSugar/DsMonad.hs
compiler/prelude/PrelNames.hs
libraries/base/Debug/Trace.hs-boot [new file with mode: 0644]