diff options
Diffstat (limited to 'html-test/src')
-rw-r--r-- | html-test/src/OrphanInstances.hs | 7 | ||||
-rw-r--r-- | html-test/src/OrphanInstancesClass.hs | 4 | ||||
-rw-r--r-- | html-test/src/OrphanInstancesType.hs | 3 |
3 files changed, 14 insertions, 0 deletions
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 |