aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-06-03 14:16:13 +0000
committersimonmar <unknown>2002-06-03 14:16:13 +0000
commit854f4914bf3b9678f1be84c44db7993103d53a01 (patch)
tree3dceb4937686396fbbd9eef33be9b15759d61869
parent052106b309d9600eb07397ea9d75bdb0c6f1184d (diff)
[haddock @ 2002-06-03 14:16:13 by simonmar]
More test cases
-rw-r--r--examples/Test.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/Test.hs b/examples/Test.hs
index c2ff45f7..2ad444b1 100644
--- a/examples/Test.hs
+++ b/examples/Test.hs
@@ -28,8 +28,14 @@ module Test (
-- ** Records
R(..),
+ -- | test that we can export record selectors on their own:
+ p, q, u,
+
-- * Class declarations
C(a,b), D(..), E, F(..),
+
+ -- | Test that we can export a class method on its own:
+ a,
-- * Function types
f, g,
@@ -133,6 +139,9 @@ class D a where
instance D Int
+-- instance with a qualified class name
+instance Test.D Float
+
class E a where
ee :: Int
-- ^ This is a class declaration with no methods (or no methods exported)