summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_compile/DeepSubsumption06.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_compile/DeepSubsumption06.hs')
-rw-r--r--testsuite/tests/typecheck/should_compile/DeepSubsumption06.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_compile/DeepSubsumption06.hs b/testsuite/tests/typecheck/should_compile/DeepSubsumption06.hs
new file mode 100644
index 0000000000..6e8b64c2c2
--- /dev/null
+++ b/testsuite/tests/typecheck/should_compile/DeepSubsumption06.hs
@@ -0,0 +1,12 @@
+{-# LANGUAGE NoPolyKinds #-}
+{-# LANGUAGE RankNTypes #-}
+module DeepSubsumption06 where
+
+class Profunctor p where
+ dimap :: (s -> a) -> (b -> t) -> p i a b -> p i s t
+
+type Iso s t a b = forall p i . Profunctor p => p i a b -> p i s t
+
+iso :: (s -> a) -> (b -> t) -> Iso s t a b
+-- iso f g = dimap f g
+iso = dimap