projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
852e5b0
)
[project @ 2002-05-31 09:43:04 by panne]
author
panne
<unknown>
Fri, 31 May 2002 09:43:04 +0000
(09:43 +0000)
committer
panne
<unknown>
Fri, 31 May 2002 09:43:04 +0000
(09:43 +0000)
Added Show instance for FunPtr
Foreign/Ptr.hs
patch
|
blob
|
history
diff --git
a/Foreign/Ptr.hs
b/Foreign/Ptr.hs
index
f4260fd
..
125759e
100644
(file)
--- a/
Foreign/Ptr.hs
+++ b/
Foreign/Ptr.hs
@@
-63,6
+63,9
@@
instance Show (Ptr a) where
-- word2Integer :: Word# -> Integer (stolen from Word.lhs)
word2Integer w = case word2Integer# w of
(# s, d #) -> J# s d
-- word2Integer :: Word# -> Integer (stolen from Word.lhs)
word2Integer w = case word2Integer# w of
(# s, d #) -> J# s d
+
+instance Show (FunPtr a) where
+ showsPrec p = showsPrec p . castFunPtrToPtr
#endif
#endif
#endif
#endif