diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2018-09-05 13:22:24 +0200 |
---|---|---|
committer | Krzysztof Gogolewski <krz.gogolewski@gmail.com> | 2018-09-05 13:23:23 +0200 |
commit | 49d50b2b7d194dca0b23de6fe4dcc717562e90a7 (patch) | |
tree | 4040cbdb9718de7a8290be9fdc529c5d9ff3e11a /testsuite/tests/typecheck/should_compile/T15368.hs | |
parent | c0e5087d01e2912f00feede6c259a2ee87685c90 (diff) | |
download | haskell-49d50b2b7d194dca0b23de6fe4dcc717562e90a7.tar.gz |
testsuite: Add test for #15368
Reviewers: bgamari, osa1
Reviewed By: osa1
Subscribers: osa1, monoidal, rwbarton, thomie, carter
GHC Trac Issues: #15368
Differential Revision: https://phabricator.haskell.org/D4958
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/T15368.hs')
-rw-r--r-- | testsuite/tests/typecheck/should_compile/T15368.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/T15368.hs b/testsuite/tests/typecheck/should_compile/T15368.hs new file mode 100644 index 0000000000..2db485740f --- /dev/null +++ b/testsuite/tests/typecheck/should_compile/T15368.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE TypeFamilies #-} + +module T15368 where + +transitive :: (a, b) -> (b, c) -> (a, c) +transitive = undefined + +trigger :: a -> b -> (F a b, F b a) +trigger _ _ = _ `transitive` trigger _ _ + +type family F (n :: *) (m :: *) :: * |