diff options
author | Alec Theriault <alec.theriault@gmail.com> | 2019-05-26 16:16:25 -0400 |
---|---|---|
committer | Alec Theriault <alec.theriault@gmail.com> | 2019-05-26 16:16:25 -0400 |
commit | 646c8d2752e45d9304402d4134bf1c59006610fa (patch) | |
tree | 31c48e3f3b1591df5264334eca0f621e44d6cc53 /html-test/src/Bug466.hs | |
parent | 260e1e1be0bb23b4c6d474b36d57354441133ed1 (diff) |
Regression test: promoted lists in associated types
When possible, associated types with promoted lists should use the
promoted list literal syntax (instead of repeated applications of
': and '[]). This was fixed in 2122de5473fd5b434af690ff9ccb1a2e58491f8c.
Closes #466,
Diffstat (limited to 'html-test/src/Bug466.hs')
-rw-r--r-- | html-test/src/Bug466.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/html-test/src/Bug466.hs b/html-test/src/Bug466.hs new file mode 100644 index 00000000..ec7cde2c --- /dev/null +++ b/html-test/src/Bug466.hs @@ -0,0 +1,9 @@ +{-# LANGUAGE DataKinds, TypeFamilies, StarIsType #-} +module Bug466 where + +class Cl a where + type Fam a :: [*] + +data X = X +instance Cl X where + type Fam X = '[Char] |