Normalise type families in the type of an expression
authorChristiaan Baaij <christiaan.baaij@gmail.com>
Wed, 6 May 2015 12:46:00 +0000 (07:46 -0500)
committerAustin Seipp <austin@well-typed.com>
Wed, 6 May 2015 12:46:09 +0000 (07:46 -0500)
commitf7daf5afe2ba4f60f60245fa82306b89a272ffa8
tree01bc8b844931c5f3291e9c26ce3be44f3d16ef5b
parent341a76641426a452fc27d3b9383945b9744c600a
Normalise type families in the type of an expression

Before, the type of an expression, and the type of a variable
binding that expression used to be different in GHCi. The
reason being that types of bound variables were already normalised.
Now, both are normalised.

This implements the suggestions as given in Trac #10321
Also adds an expected output for test T10321

Reviewed By: goldfire, simonpj

Differential Revision: https://phabricator.haskell.org/D870

GHC Trac Issues: #10321
compiler/typecheck/TcRnDriver.hs
testsuite/tests/ghci/scripts/T10321.stdout [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T