summaryrefslogtreecommitdiff
path: root/ast.hs
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-06-20 22:06:58 +0200
committertomsmeding <tom.smeding@gmail.com>2016-06-20 22:06:58 +0200
commit7957dc36354a803ba96231c5bf8397a154f0ca59 (patch)
tree3d3a156d8cbc145a37e4886eeeb2d3abdfa74e1e /ast.hs
parent712dfe8a117207f1d70e0e14f9d6e7ee62c8eadd (diff)
Cleanup + from(Left|Right)
Diffstat (limited to 'ast.hs')
-rw-r--r--ast.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/ast.hs b/ast.hs
index 4862a92..11aeb9b 100644
--- a/ast.hs
+++ b/ast.hs
@@ -23,7 +23,7 @@ data AST = Number Double
| Capture String
| CaptureTerm String
| CaptureConstr String AST -- AST argument only for constructor; only WHNF
- deriving (Eq,Typeable,Data)
+ deriving (Show,Read,Eq,Typeable,Data)
instance PrettyPrint AST where
prettyPrint (Number n) = show n
@@ -56,9 +56,6 @@ instance PrettyPrint AST where
prettyPrint (CaptureConstr name c) = '[' : name ++ ":" ++ showConstr (toConstr c) ++ "]"
-instance Show AST where
- show = prettyPrint
-
instance NFData AST where
rnf (Number !_) = ()
rnf (Variable !_) = ()