Add tracing infrastructure to pattern match checker
authorMatthew Pickering <matthewtpickering@gmail.com>
Sun, 6 Nov 2016 12:47:48 +0000 (12:47 +0000)
committerMatthew Pickering <matthewtpickering@gmail.com>
Sun, 6 Nov 2016 12:47:48 +0000 (12:47 +0000)
commit25c8e80eccc512d05c0ca8df401271db65b5987b
tree74f86a98fb5551a323666e3040ac33aa34657cc2
parent1c886eadcfbb593bb06bfff7b8a4914b5349f080
Add tracing infrastructure to pattern match checker

Summary:
This is the start of some tracing infrastructure which I found useful
when working through how the pattern match checker worked.

It adds the flag -ddump-ec-trace in order to turn on the trace.

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2658
compiler/deSugar/Check.hs
compiler/deSugar/DsMonad.hs
compiler/hsSyn/HsExpr.hs
compiler/main/DynFlags.hs
docs/users_guide/debugging.rst