add Show instance and remove the Eq and Ord instances for PGF.Expr.Equation and PGF.Expr.Patt

This commit is contained in:
krasimir
2010-01-31 14:45:44 +00:00
parent 5507133638
commit c93e406997

View File

@@ -68,7 +68,7 @@ data Patt =
| PVar CId -- ^ variable | PVar CId -- ^ variable
| PWild -- ^ wildcard | PWild -- ^ wildcard
| PImplArg Patt -- ^ implicit argument in pattern | PImplArg Patt -- ^ implicit argument in pattern
deriving (Eq,Ord) deriving Show
-- | The equation is used to define lambda function as a sequence -- | The equation is used to define lambda function as a sequence
-- of equations with pattern matching. The list of 'Expr' represents -- of equations with pattern matching. The list of 'Expr' represents
@@ -76,7 +76,7 @@ data Patt =
-- equation. -- equation.
data Equation = data Equation =
Equ [Patt] Expr Equ [Patt] Expr
deriving (Eq,Ord) deriving Show
-- | parses 'String' as an expression -- | parses 'String' as an expression
readExpr :: String -> Maybe Expr readExpr :: String -> Maybe Expr