From a012d110ff873aab57c27da5337d3a00d4d6e9b2 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 20 Aug 2002 10:03:05 +0000 Subject: [PATCH] [project @ 2002-08-20 10:03:05 by simonmar] The Typeable instances were missing in the __GLASGOW_HASKELL__ case; add them. --- include/CTypes.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/CTypes.h b/include/CTypes.h index cc0ea74..64abde9 100644 --- a/include/CTypes.h +++ b/include/CTypes.h @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: CTypes.h,v 1.3 2002/08/03 19:32:17 reid Exp $ + * $Id: CTypes.h,v 1.4 2002/08/20 10:03:05 simonmar Exp $ * * Dirty CPP hackery for CTypes/CTypesISO * @@ -171,17 +171,20 @@ instance RealFloat T where { \ #define NUMERIC_TYPE(T,C,S,B) \ newtype T = T B deriving (NUMERIC_CLASSES); \ INSTANCE_READ(T,B); \ -INSTANCE_SHOW(T,B) +INSTANCE_SHOW(T,B); \ +INSTANCE_TYPEABLE0(T,C,S) ; #define INTEGRAL_TYPE(T,C,S,B) \ newtype T = T B deriving (NUMERIC_CLASSES, INTEGRAL_CLASSES); \ INSTANCE_READ(T,B); \ -INSTANCE_SHOW(T,B) +INSTANCE_SHOW(T,B); \ +INSTANCE_TYPEABLE0(T,C,S) ; #define FLOATING_TYPE(T,C,S,B) \ newtype T = T B deriving (NUMERIC_CLASSES, FLOATING_CLASSES); \ INSTANCE_READ(T,B); \ -INSTANCE_SHOW(T,B) +INSTANCE_SHOW(T,B); \ +INSTANCE_TYPEABLE0(T,C,S) ; #define INSTANCE_READ(T,B) \ instance Read T where { \ -- 1.7.10.4