Explorar el Código

Add the show method to Nat

DricomDragon hace 5 años
padre
commit
e0265c011e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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