diff options
author | Pepe Iborra <mnislaih@gmail.com> | 2006-12-10 11:29:44 +0000 |
---|---|---|
committer | Pepe Iborra <mnislaih@gmail.com> | 2006-12-10 11:29:44 +0000 |
commit | ab5b8aa357c685a7c702262903bce04c66f79156 (patch) | |
tree | d4f56e32bc2246ccefc730ad900fcda6ebcf9e44 /compiler/prelude | |
parent | d308d910efa702ebf5a2f76db628d690fcf6fa51 (diff) | |
download | haskell-ab5b8aa357c685a7c702262903bce04c66f79156.tar.gz |
Retrieving the datacon of an arbitrary closure
This patch extends the RTS linker and the dynamic linker so that it is possible to find out the datacon of a closure in heap at runtime:
- The RTS linker now carries a hashtable 'Address->Symbol' for data constructors
- The Persistent Linker State in the dynamic linker is extended in a similar way.
Finally, these two sources of information are consulted by:
> Linker.recoverDataCon :: a -> TcM Name
Diffstat (limited to 'compiler/prelude')
-rw-r--r-- | compiler/prelude/TysWiredIn.lhs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/prelude/TysWiredIn.lhs b/compiler/prelude/TysWiredIn.lhs index 87c216599b..2a819f037b 100644 --- a/compiler/prelude/TysWiredIn.lhs +++ b/compiler/prelude/TysWiredIn.lhs @@ -38,6 +38,8 @@ module TysWiredIn ( unitTyCon, unitDataCon, unitDataConId, pairTyCon, unboxedSingletonTyCon, unboxedSingletonDataCon, unboxedPairTyCon, unboxedPairDataCon, + + boxedTupleArr, unboxedTupleArr, unitTy, |