Make sure PatSyns only get added once to tcg_patsyns
authorMatthew Pickering <matthewtpickering@gmail.com>
Fri, 11 Dec 2015 18:10:45 +0000 (18:10 +0000)
committerMatthew Pickering <matthewtpickering@gmail.com>
Fri, 11 Dec 2015 18:12:00 +0000 (18:12 +0000)
commit41ef8f70819e9b99aacc6d81019e5a33a63dfeab
tree3275f378436bf53454aa053cf3e81b2a727fd0e1
parentf4f00c0f28f3c21eb6f1396f48058c430c4e9b30
Make sure PatSyns only get added once to tcg_patsyns

Summary: Before, `PatSyn`s were getting added twice to `tcg_patsyns` so
when inspecting afterwards there were duplicates in the list.
This makes sure that only they only get added once.

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1597
compiler/typecheck/TcBinds.hs
compiler/typecheck/TcPatSyn.hs
compiler/typecheck/TcPatSyn.hs-boot