Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created January 15, 2017 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/64a673923d2441a9e770af2379625b57 to your computer and use it in GitHub Desktop.
Save deque-blog/64a673923d2441a9e770af2379625b57 to your computer and use it in GitHub Desktop.
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