Browse Source

Create data Nat

Handle an integer with Peano arithmetic
DricomDragon 5 năm trước cách đây
mục cha
commit
e1135c8da8
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      peano.hs

+ 2 - 0
peano.hs

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