Created
January 15, 2017 16:56
-
-
Save deque-blog/64a673923d2441a9e770af2379625b57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Id = String | |
data OpType = Add | Mul deriving (Show, Eq, Ord) | |
data Expr | |
= Cst Int | |
| Var Id | |
| Op OpType [Expr] | |
deriving (Show, Eq, Ord) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment