瀏覽代碼

Create the data type to hold arithmetic expressions

DricomDragon 5 年之前
父節點
當前提交
60ba874983
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      functor.hs

+ 3 - 0
functor.hs

@@ -0,0 +1,3 @@
+-- Slide 64
+
+Expr a = Val a | Inc (Expr a) | Dec (Expr a) | Inv (Expr a) | Neg (Expr a)