projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5942db8
)
[project @ 1997-12-02 18:03:56 by quintela]
author
quintela
<unknown>
Tue, 2 Dec 1997 18:03:56 +0000
(18:03 +0000)
committer
quintela
<unknown>
Tue, 2 Dec 1997 18:03:56 +0000
(18:03 +0000)
HsLit instance of Eq; need by Check
ghc/compiler/hsSyn/HsBasic.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/hsSyn/HsBasic.lhs
b/ghc/compiler/hsSyn/HsBasic.lhs
index
29fcce3
..
afe2516
100644
(file)
--- a/
ghc/compiler/hsSyn/HsBasic.lhs
+++ b/
ghc/compiler/hsSyn/HsBasic.lhs
@@
-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)