[project @ 1997-12-02 18:03:56 by quintela]
authorquintela <unknown>
Tue, 2 Dec 1997 18:03:56 +0000 (18:03 +0000)
committerquintela <unknown>
Tue, 2 Dec 1997 18:03:56 +0000 (18:03 +0000)
HsLit instance of Eq; need by Check

ghc/compiler/hsSyn/HsBasic.lhs

index 29fcce3..afe2516 100644 (file)
@@ -48,8 +48,11 @@ data HsLit
                                -- also: "overloaded" type; but
                                -- must resolve to boxed-primitive!
                                -- (WDP 94/10)
+       deriving Eq
 \end{code}
 
+ToDo: an improved Eq instance JJQC 30-Nov-1997
+
 \begin{code}
 negLiteral (HsInt  i) = HsInt  (-i)
 negLiteral (HsFrac f) = HsFrac (-f)