Simplify the logic for tc_hs_sig_type
authorSimon Peyton Jones <simonpj@microsoft.com>
Mon, 27 Mar 2017 09:05:26 +0000 (10:05 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Mon, 27 Mar 2017 13:40:55 +0000 (14:40 +0100)
commit1e06d8b8f2aea0a06d40618c296a034f3e408ae2
tree78aa45e7faf3af357117b4ea5e341b2b034ab54e
parenta6675a93efe7cae2f206508047a39e73ce4e92a5
Simplify the logic for tc_hs_sig_type

In fixing Trac #13337, and introducing solveSomeEqualities,
Richard introduce the higher-order function tc_hs_sig_type_x,
with a solver as its argument.

It turned out that there was a much simpler way to do the
same thing, which this patch implements.  Less code, easier
to grok.  No change in behaviour though.
compiler/typecheck/TcHsType.hs