aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)