From f49aa7585acbf46686e4113168ddc89443e87cc2 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 25 Mar 2004 10:02:41 +0000 Subject: [haddock @ 2004-03-25 10:02:41 by simonmar] Duplicate instance bug. --- examples/Bug7.hs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 examples/Bug7.hs (limited to 'examples/Bug7.hs') diff --git a/examples/Bug7.hs b/examples/Bug7.hs new file mode 100644 index 00000000..8cf57914 --- /dev/null +++ b/examples/Bug7.hs @@ -0,0 +1,12 @@ +-- | This module caused a duplicate instance in the documentation for the Foo +-- type. +module Bug7 where + +-- | The Foo datatype +data Foo = Foo + +-- | The Bar class +class Bar x y + +-- | Just one instance +instance Bar Foo Foo -- cgit v1.2.3