diff options
author | Tom Hunger <tehunger@gmail.com> | 2016-12-19 11:23:30 +0000 |
---|---|---|
committer | Tom Hunger <tehunger@gmail.com> | 2016-12-19 11:23:30 +0000 |
commit | 31787399112ac4f6ad30895b460a1e53276e2061 (patch) | |
tree | 68791fba89e6b4bbc8fcdfea75a920f4cd48a085 /tests | |
parent | 56e75b33d66738b072f9f5525f3af4a8ba863d8b (diff) | |
download | pygments-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.hs | 5 |
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 |