aboutsummaryrefslogtreecommitdiff
path: root/html-test/src
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2018-12-23 10:23:20 -0500
committerGitHub <noreply@github.com>2018-12-23 10:23:20 -0500
commit7dd0a79cce7c4c048e7c145c9f378da3a96392d0 (patch)
tree30d9449b76bd90bae0030651e839e7f98cada91f /html-test/src
parented43757aa371f9a532665783e27cff1703b4ac90 (diff)
Properly synify and render promoted type variables (#985)
* Synify and render properly promoted type variables Fixes #923. * Accept output
Diffstat (limited to 'html-test/src')
-rw-r--r--html-test/src/Bug923.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/html-test/src/Bug923.hs b/html-test/src/Bug923.hs
new file mode 100644
index 00000000..bb5bca0a
--- /dev/null
+++ b/html-test/src/Bug923.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE KindSignatures, FlexibleInstances, GADTs, DataKinds #-}
+module Bug923 where
+
+-- | A promoted tuple type
+data T :: (* -> (*,*)) -> * where
+ T :: a -> T ('(,) a)
+
+-- | A promoted tuple type in an instance
+instance Eq a => Eq (T ('(,) a)) where
+ T x == T y = x == y
+