Sfoglia il codice sorgente

Create the data type to hold arithmetic expressions

DricomDragon 5 anni fa
parent
commit
60ba874983
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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)