Print module when dumping rules
authorMatthew Pickering <matthewtpickering@gmail.com>
Wed, 29 Mar 2017 20:08:40 +0000 (16:08 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 29 Mar 2017 20:08:45 +0000 (16:08 -0400)
commit04ea4c3f86db4e2cc7b2683f58f2076233039ebf
tree08e034753aaeca0fff496b5f7f0832fac149b7e1
parent5856c564dff79a5c2b6a92b1c6c350798b538da3
Print module when dumping rules

It is sometimes hard to find where a rule is defined. Printing the
module where it comes from will make it much easier to find.

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3378
compiler/coreSyn/CoreSyn.hs
compiler/simplCore/Simplify.hs
compiler/specialise/Rules.hs
testsuite/tests/indexed-types/should_compile/T7837.stderr
testsuite/tests/perf/compiler/T4007.stdout
testsuite/tests/simplCore/should_compile/T6056.stderr
testsuite/tests/simplCore/should_compile/T8848.stdout