Take type-function arity into account
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 18 Feb 2016 12:52:18 +0000 (12:52 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 18 Feb 2016 12:52:18 +0000 (12:52 +0000)
commita008eadfaa4816be349b4fefde9b9b9edc1ca359
tree8da1347fd5d970b0598aa7837111bf8d37512532
parent4d031cf91c5eed9b162703daee274bbbe94bdc42
Take type-function arity into account

...when computing the size of a call on the RHS of a type
instance declaration.

This came up in Trac #11581.  The change is in
   TcType.tcTyFamInsts
which now trims the type arguments in a call.  See the
comments with that function definition.
compiler/typecheck/TcType.hs
testsuite/tests/indexed-types/should_compile/T11581.hs [new file with mode: 0644]
testsuite/tests/indexed-types/should_compile/all.T