diff options
author | Richard Eisenberg <eir@cis.upenn.edu> | 2016-03-15 13:49:15 -0400 |
---|---|---|
committer | Richard Eisenberg <eir@cis.upenn.edu> | 2016-03-15 13:49:15 -0400 |
commit | 1eefedf7371778d1721d9af9247c2eff12ae7417 (patch) | |
tree | e85ab9b6638e30179e5f4d655d09ed74cc486413 /testsuite/tests | |
parent | 857e9b0231db80b838d78e341954d3e75db7e94b (diff) | |
download | haskell-1eefedf7371778d1721d9af9247c2eff12ae7417.tar.gz |
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.
Diffstat (limited to 'testsuite/tests')
-rw-r--r-- | testsuite/tests/deriving/should_compile/T11357.hs | 10 | ||||
-rw-r--r-- | testsuite/tests/deriving/should_compile/all.T | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/deriving/should_compile/T11357.hs b/testsuite/tests/deriving/should_compile/T11357.hs new file mode 100644 index 0000000000..f3dc715f89 --- /dev/null +++ b/testsuite/tests/deriving/should_compile/T11357.hs @@ -0,0 +1,10 @@ +{-# LANGUAGE DeriveGeneric #-} +{-# LANGUAGE KindSignatures #-} +{-# LANGUAGE PolyKinds #-} +{-# LANGUAGE TypeFamilies #-} +module T11357 where + +import GHC.Generics (Generic1) + +data family ProxyFam (a :: k) +data instance ProxyFam (a :: k) = ProxyCon deriving Generic1 diff --git a/testsuite/tests/deriving/should_compile/all.T b/testsuite/tests/deriving/should_compile/all.T index ad235d695e..e62c50c218 100644 --- a/testsuite/tests/deriving/should_compile/all.T +++ b/testsuite/tests/deriving/should_compile/all.T @@ -64,3 +64,4 @@ test('T9968', normal, compile, ['']) test('T11174', normal, compile, ['']) test('T11416', normal, compile, ['']) test('T11396', normal, compile, ['']) +test('T11357', normal, compile, ['']) |