From c7b9b8a5aa78b28aa2f9a35b22a2f1416a6f2938 Mon Sep 17 00:00:00 2001 From: panne Date: Fri, 31 May 2002 09:43:04 +0000 Subject: [PATCH 1/1] [project @ 2002-05-31 09:43:04 by panne] Added Show instance for FunPtr --- Foreign/Ptr.hs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Foreign/Ptr.hs b/Foreign/Ptr.hs index f4260fd..125759e 100644 --- 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 + +instance Show (FunPtr a) where + showsPrec p = showsPrec p . castFunPtrToPtr #endif #endif -- 1.7.10.4