diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-06-20 22:06:58 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-06-20 22:06:58 +0200 |
commit | 7957dc36354a803ba96231c5bf8397a154f0ca59 (patch) | |
tree | 3d3a156d8cbc145a37e4886eeeb2d3abdfa74e1e /ast.hs | |
parent | 712dfe8a117207f1d70e0e14f9d6e7ee62c8eadd (diff) |
Cleanup + from(Left|Right)
Diffstat (limited to 'ast.hs')
-rw-r--r-- | ast.hs | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 !_) = () |