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:
bd657ba
)
use Any as the HValue type, this should be a bit safer than forall a.a
author
Simon Marlow
<simonmar@microsoft.com>
Wed, 25 Apr 2007 14:29:14 +0000
(14:29 +0000)
committer
Simon Marlow
<simonmar@microsoft.com>
Wed, 25 Apr 2007 14:29:14 +0000
(14:29 +0000)
compiler/ghci/ByteCodeLink.lhs
patch
|
blob
|
history
diff --git
a/compiler/ghci/ByteCodeLink.lhs
b/compiler/ghci/ByteCodeLink.lhs
index
7304d02
..
e8bae70
100644
(file)
--- a/
compiler/ghci/ByteCodeLink.lhs
+++ b/
compiler/ghci/ByteCodeLink.lhs
@@
-58,7
+58,7
@@
import GHC.Base ( writeArray#, RealWorld, Int(..), Word# )
\begin{code}
type ClosureEnv = NameEnv (Name, HValue)
\begin{code}
type ClosureEnv = NameEnv (Name, HValue)
-newtype HValue = HValue (forall a . a)
+newtype HValue = HValue Any
emptyClosureEnv = emptyNameEnv
emptyClosureEnv = emptyNameEnv