summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2010-01-31 14:45:44 +0000
committerkrasimir <krasimir@chalmers.se>2010-01-31 14:45:44 +0000
commitacd927f87bfcc9b1a3b9f38371239adf27a3bf6b (patch)
tree0c61b37a4b7adcc862d99e7806f99a22f4329a7d
parente71545eab1a0e2528eb18f0296b07caaebed22a9 (diff)
add Show instance and remove the Eq and Ord instances for PGF.Expr.Equation and PGF.Expr.Patt
-rw-r--r--src/runtime/haskell/PGF/Expr.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/haskell/PGF/Expr.hs b/src/runtime/haskell/PGF/Expr.hs
index 19fc8f627..5807c1815 100644
--- a/src/runtime/haskell/PGF/Expr.hs
+++ b/src/runtime/haskell/PGF/Expr.hs
@@ -68,7 +68,7 @@ data Patt =
| PVar CId -- ^ variable
| PWild -- ^ wildcard
| PImplArg Patt -- ^ implicit argument in pattern
- deriving (Eq,Ord)
+ deriving Show
-- | The equation is used to define lambda function as a sequence
-- of equations with pattern matching. The list of 'Expr' represents
@@ -76,7 +76,7 @@ data Patt =
-- equation.
data Equation =
Equ [Patt] Expr
- deriving (Eq,Ord)
+ deriving Show
-- | parses 'String' as an expression
readExpr :: String -> Maybe Expr