From b5ab70a092e4a801030cf01f87378217d4c87343 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sat, 19 Dec 2015 17:38:54 +0100 Subject: Add html-test for orphan instances output --- html-test/src/OrphanInstances.hs | 7 +++++++ html-test/src/OrphanInstancesClass.hs | 4 ++++ html-test/src/OrphanInstancesType.hs | 3 +++ 3 files changed, 14 insertions(+) create mode 100644 html-test/src/OrphanInstances.hs create mode 100644 html-test/src/OrphanInstancesClass.hs create mode 100644 html-test/src/OrphanInstancesType.hs (limited to 'html-test/src') diff --git a/html-test/src/OrphanInstances.hs b/html-test/src/OrphanInstances.hs new file mode 100644 index 00000000..a005c4a2 --- /dev/null +++ b/html-test/src/OrphanInstances.hs @@ -0,0 +1,7 @@ +module OrphanInstances where + +import OrphanInstancesType +import OrphanInstancesClass + +instance AClass AnotherType where + aClass (AType n) = n diff --git a/html-test/src/OrphanInstancesClass.hs b/html-test/src/OrphanInstancesClass.hs new file mode 100644 index 00000000..4b51acfc --- /dev/null +++ b/html-test/src/OrphanInstancesClass.hs @@ -0,0 +1,4 @@ +module OrphanInstancesClass (AClass(..)) where + +class AClass a where + aClass :: a -> Int diff --git a/html-test/src/OrphanInstancesType.hs b/html-test/src/OrphanInstancesType.hs new file mode 100644 index 00000000..b3c3145e --- /dev/null +++ b/html-test/src/OrphanInstancesType.hs @@ -0,0 +1,3 @@ +module OrphanInstancesType (AType(..)) where + +data AType = AType Int -- cgit v1.2.3