Explorar el Código

Create the data type to hold arithmetic expressions

DricomDragon hace 5 años
padre
commit
60ba874983
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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)