Move usage calculation to desugaring, simplifying ModGuts.
authorEdward Z. Yang <ezyang@cs.stanford.edu>
Fri, 13 Nov 2015 00:38:02 +0000 (16:38 -0800)
committerEdward Z. Yang <ezyang@cs.stanford.edu>
Mon, 16 Nov 2015 23:32:56 +0000 (15:32 -0800)
commit9193629a6d8c7605ba81e62bc7f9a04a8ce65013
tree26d28f1a2c73d90ab4d0d534f0fdc8eeb2bdae15
parent3d88e8990320780520a670191d704a37bff5c910
Move usage calculation to desugaring, simplifying ModGuts.

Summary:
(This patch was excised from the fat interfaces patch, which
has been put indefinitely on hold.)

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate

Reviewers: simonpj, austin, bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1469
compiler/basicTypes/IdInfo.hs
compiler/deSugar/Desugar.hs
compiler/iface/MkIface.hs
compiler/main/HscMain.hs
compiler/main/HscTypes.hs