[commit: ghc-prim] ghc-generics: Update comments. (61b099f)
José Pedro Magalhães
jpm at cs.uu.nl
Fri Apr 29 16:18:56 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/packages/ghc-prim
On branch : ghc-generics
http://hackage.haskell.org/trac/ghc/changeset/61b099f894d42aed84d739d3b5917c44707d3c43
>---------------------------------------------------------------
commit 61b099f894d42aed84d739d3b5917c44707d3c43
Author: Jose Pedro Magalhaes <jpm at cs.uu.nl>
Date: Fri Apr 29 08:47:41 2011 +0200
Update comments.
>---------------------------------------------------------------
GHC/Generics.hs | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/GHC/Generics.hs b/GHC/Generics.hs
index 64e6db7..d411064 100644
--- a/GHC/Generics.hs
+++ b/GHC/Generics.hs
@@ -126,14 +126,12 @@ class Constructor c where
-- | Datatype to represent the arity of a tuple.
data Arity = NoArity | Arity Int
--- deriving (Eq, Show, Ord, Read)
--- TODO: Add these instances to the Prelude
+-- Eq, Show, Ord, and Read instances are in GHC.Int
-- | Datatype to represent the fixity of a constructor. An infix
-- | declaration directly corresponds to an application of 'Infix'.
data Fixity = Prefix | Infix Associativity Int
--- deriving (Eq, Show, Ord, Read)
--- TODO: Add these instances to the Prelude
+-- Eq, Show, Ord, and Read instances are in GHC.Int
-- | Get the precedence of a fixity value.
prec :: Fixity -> Int
@@ -144,8 +142,7 @@ prec (Infix _ n) = n
data Associativity = LeftAssociative
| RightAssociative
| NotAssociative
--- deriving (Eq, Show, Ord, Read)
--- TODO: Add these instances to the Prelude
+-- Eq, Show, Ord, and Read instances are in GHC.Int
-- | Generic representation type
type family Rep0 a :: * -> *
More information about the Cvs-libraries
mailing list