Browse Source

Create data Nat

Handle an integer with Peano arithmetic
DricomDragon 5 years ago
parent
commit
e1135c8da8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      peano.hs

+ 2 - 0
peano.hs

@@ -0,0 +1,2 @@
+data Nat = Zero | Succ Nat
+