Kaynağa Gözat

Create the data type to hold arithmetic expressions

DricomDragon 5 yıl önce
ebeveyn
işleme
60ba874983
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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)