Fix #11357.
authorRichard Eisenberg <eir@cis.upenn.edu>
Tue, 15 Mar 2016 17:49:15 +0000 (13:49 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Tue, 15 Mar 2016 17:49:15 +0000 (13:49 -0400)
commit1eefedf7371778d1721d9af9247c2eff12ae7417
treee85ab9b6638e30179e5f4d655d09ed74cc486413
parent857e9b0231db80b838d78e341954d3e75db7e94b
Fix #11357.

We were looking at a data instance tycon for visibility info,
which is the wrong place to look. Look at the data family tycon
instead.

Also improved the pretty-printing near there to suppress kind
arguments when appropriate.
compiler/typecheck/TcDeriv.hs
compiler/typecheck/TcGenGenerics.hs
testsuite/tests/deriving/should_compile/T11357.hs [new file with mode: 0644]
testsuite/tests/deriving/should_compile/all.T