aboutsummaryrefslogtreecommitdiff
path: root/html-test/src
diff options
context:
space:
mode:
authorAlec Theriault <alec.theriault@gmail.com>2019-02-25 21:53:56 -0800
committerAlec Theriault <alec.theriault@gmail.com>2019-02-25 22:12:11 -0800
commit5d45da4898f7e8e7a1637b4cd473c393063034a0 (patch)
tree89b26e6dd108234792bba1032b89243e73901b42 /html-test/src
parentcacd245a5e0a0f2e14d4ed34e877835fdef3367f (diff)
Fix standalone deriving docs
Docs on standalone deriving decls for classes with associated types should be associated with the class instance, not the associated type instance. Fixes #1033
Diffstat (limited to 'html-test/src')
-rw-r--r--html-test/src/Bug1033.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/html-test/src/Bug1033.hs b/html-test/src/Bug1033.hs
new file mode 100644
index 00000000..fdf5a57e
--- /dev/null
+++ b/html-test/src/Bug1033.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE StandaloneDeriving #-}
+
+module Bug1033 where
+
+import GHC.Generics
+
+data Foo = Foo
+
+-- | This does some generic foos.
+deriving instance Generic Foo