ソースを参照

Add the show method to Nat

DricomDragon 5 年 前
コミット
e0265c011e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      peano.hs

+ 1 - 1
peano.hs

@@ -1,4 +1,4 @@
-data Nat = Zero | Succ Nat
+data Nat = Zero | Succ Nat deriving Show
 
 intValOf thisNat = case thisNat of
 	Zero -> 0