Преглед изворни кода

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