Browse Source

Add the show method to Nat

DricomDragon 5 năm trước cách đây
mục cha
commit
e0265c011e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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