Created
January 18, 2017 20:38
-
-
Save deque-blog/f7b598e71361e55cfe76bde1184fce28 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 ExprR r | |
= Cst Int | |
| Var Id | |
| Op OpType [r] | |
deriving (Show, Eq, Ord) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment