Make deSugarExpr use runTcInteractive
authorReid Barton <rwbarton@gmail.com>
Tue, 14 Feb 2017 18:13:56 +0000 (13:13 -0500)
committerBen Gamari <ben@smart-cactus.org>
Tue, 14 Feb 2017 21:57:31 +0000 (16:57 -0500)
commitf90e61ad6e5fa0655185f14ca128d507e489c4b7
treee2300077b28f422c0918cb3fdbb50d45464c5a8f
parentbedcb71659253bb8ab5d449df8e3ee884cc85d46
Make deSugarExpr use runTcInteractive

Preparation for #13102, which needs to add more logic to
runTcInteractive, which would need to be duplicated in deSugarExpr.

In order to break an import cycle, I had to move
"Dependency/fingerprinting code" to a new module
DsUsage; which seems sensible anyways.

Test Plan: validate

Reviewers: simonpj, austin, bgamari

Reviewed By: bgamari

Subscribers: thomie, snowleopard

Differential Revision: https://phabricator.haskell.org/D3125
compiler/deSugar/Desugar.hs
compiler/deSugar/DsUsage.hs [new file with mode: 0644]
compiler/ghc.cabal.in
compiler/iface/MkIface.hs