summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTom Hunger <tehunger@gmail.com>2016-12-19 11:23:30 +0000
committerTom Hunger <tehunger@gmail.com>2016-12-19 11:23:30 +0000
commit31787399112ac4f6ad30895b460a1e53276e2061 (patch)
tree68791fba89e6b4bbc8fcdfea75a920f4cd48a085 /tests
parent56e75b33d66738b072f9f5525f3af4a8ba863d8b (diff)
downloadpygments-31787399112ac4f6ad30895b460a1e53276e2061.tar.gz
Add `family` as a keyword to support Haskell's type families. See #820.
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/example.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/examplefiles/example.hs b/tests/examplefiles/example.hs
index f5e2b555..3a0c3032 100644
--- a/tests/examplefiles/example.hs
+++ b/tests/examplefiles/example.hs
@@ -29,3 +29,8 @@ 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