1
0
forked from GitHub/gf-core

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
| 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