summaryrefslogtreecommitdiff
path: root/tests/examplefiles/example.hs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examplefiles/example.hs')
-rw-r--r--tests/examplefiles/example.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/examplefiles/example.hs b/tests/examplefiles/example.hs
index f5e2b555..764cab77 100644
--- a/tests/examplefiles/example.hs
+++ b/tests/examplefiles/example.hs
@@ -29,3 +29,13 @@ data ĈrazyThings =
-- some char literals:
charl = ['"', 'a', '\ESC', '\'', ' ']
+
+-- closed type families
+type family Fam (a :: Type) = r :: Type where
+ Fam Int = True
+ Fam a = False
+
+-- type literals
+type IntChar = '[Int, Char]
+type Falsy = 'False
+type Falsy = '(10, 20, 30)