From 2d4680f12f8c9cd647049eb1e3e56531bd44e880 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 24 Dec 2015 00:30:48 +0100 Subject: OrphanInstances: Accept test output --- html-test/ref/OrphanInstances.html | 113 ++++++++++++++++++++++++++++++++ html-test/ref/OrphanInstancesClass.html | 85 ++++++++++++++++++++++++ html-test/ref/OrphanInstancesType.html | 81 +++++++++++++++++++++++ html-test/src/OrphanInstances.hs | 3 +- 4 files changed, 281 insertions(+), 1 deletion(-) create mode 100644 html-test/ref/OrphanInstances.html create mode 100644 html-test/ref/OrphanInstancesClass.html create mode 100644 html-test/ref/OrphanInstancesType.html diff --git a/html-test/ref/OrphanInstances.html b/html-test/ref/OrphanInstances.html new file mode 100644 index 00000000..0f12bb2e --- /dev/null +++ b/html-test/ref/OrphanInstances.html @@ -0,0 +1,113 @@ + +OrphanInstances

 

Safe HaskellSafe

OrphanInstances

Synopsis

    Documentation

    Orphan instances

    AClass AType

    This is an orphan instance.

    Methods

    aClass :: AType -> Int

    diff --git a/html-test/ref/OrphanInstancesClass.html b/html-test/ref/OrphanInstancesClass.html new file mode 100644 index 00000000..69ba33f8 --- /dev/null +++ b/html-test/ref/OrphanInstancesClass.html @@ -0,0 +1,85 @@ + +OrphanInstancesClass

     

    Safe HaskellSafe

    OrphanInstancesClass

    Documentation

    class AClass a where

    Minimal complete definition

    aClass

    Methods

    aClass :: a -> Int

    diff --git a/html-test/ref/OrphanInstancesType.html b/html-test/ref/OrphanInstancesType.html new file mode 100644 index 00000000..2652db73 --- /dev/null +++ b/html-test/ref/OrphanInstancesType.html @@ -0,0 +1,81 @@ + +OrphanInstancesType

     

    Safe HaskellSafe

    OrphanInstancesType

    Documentation

    data AType

    Constructors

    AType Int 
    diff --git a/html-test/src/OrphanInstances.hs b/html-test/src/OrphanInstances.hs index a005c4a2..e50327ee 100644 --- a/html-test/src/OrphanInstances.hs +++ b/html-test/src/OrphanInstances.hs @@ -3,5 +3,6 @@ module OrphanInstances where import OrphanInstancesType import OrphanInstancesClass -instance AClass AnotherType where +-- | This is an orphan instance. +instance AClass AType where aClass (AType n) = n -- cgit v1.2.3