Skip to content

Instantly share code, notes, and snippets.

@5outh
Created November 13, 2013 21:00
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 5outh/7456324 to your computer and use it in GitHub Desktop.
Save 5outh/7456324 to your computer and use it in GitHub Desktop.
instance Show Expr where
show (Not e) = "NOT " ++ show e
show (And e1 e2) = show e1 ++ " AND " ++ show e2
show (Or e1 e2) = show e1 ++ " OR " ++ show e2
show (Var c) = [c]
show (SubExpr e) = "(" ++ show e ++ ")"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment