diff options
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 !_) = () |