@@ -24,10 +24,6 @@ import Prelude.Chars
24class Show a where
24class Show a where
25 show : a -> String
25 show : a -> String
27−instance Show Nat where
29− show (S k) = "s" ++ show k
31instance Show Int where
27instance Show Int where
32 show = prim__toStrInt
28 show = prim__toStrInt
@@ -43,6 +39,9 @@ instance Show Char where
43instance Show String where
39instance Show String where
42+instance Show Nat where
43+ show n = show (the Integer (cast n))
46instance Show Bool where
45instance Show Bool where
47 show True = "True"
46 show True = "True"
48 show False = "False"
47 show False = "False"