Parcourir la source

Create the data type to hold arithmetic expressions

DricomDragon il y a 5 ans
Parent
commit
60ba874983
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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)