summaryrefslogtreecommitdiff
path: root/testsuite/tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests')
-rw-r--r--testsuite/tests/showIface/DocsInHiFile.hs6
-rw-r--r--testsuite/tests/showIface/DocsInHiFile1.stdout4
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/showIface/DocsInHiFile.hs b/testsuite/tests/showIface/DocsInHiFile.hs
index 26156722ac..e753eb5e42 100644
--- a/testsuite/tests/showIface/DocsInHiFile.hs
+++ b/testsuite/tests/showIface/DocsInHiFile.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE TypeFamilies #-}
{-| `elem`, 'print',
`Unknown',
'<>', ':=:', 'Bool'
@@ -35,3 +36,8 @@ class P f where
-- | Another datatype...
data D'
-- ^ ...with two docstrings.
+
+-- | A type family
+type family F a
+-- | A type family instance
+type instance F Int = Bool
diff --git a/testsuite/tests/showIface/DocsInHiFile1.stdout b/testsuite/tests/showIface/DocsInHiFile1.stdout
index 83d21f1953..fa642627d6 100644
--- a/testsuite/tests/showIface/DocsInHiFile1.stdout
+++ b/testsuite/tests/showIface/DocsInHiFile1.stdout
@@ -22,6 +22,10 @@ declaration docs:
" Another datatype...
...with two docstrings."
+ D:R:FInt:
+ " A type family instance"
+ F:
+ " A type family"
arg docs:
add:
0: