From: simonmar Date: Tue, 20 Aug 2002 10:03:05 +0000 (+0000) Subject: [project @ 2002-08-20 10:03:05 by simonmar] X-Git-Tag: nhc98-1-18-release~906 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a012d110ff873aab57c27da5337d3a00d4d6e9b2;p=haskell-directory.git [project @ 2002-08-20 10:03:05 by simonmar] The Typeable instances were missing in the __GLASGOW_HASKELL__ case; add them. --- 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 { \