1 {-# LANGUAGE NoImplicitPrelude #-}
2 {-# OPTIONS_GHC -fno-warn-tabs #-}
4 module Hcompta.Expr.Eq where
7 import Data.Eq (Eq(..))
9 import Hcompta.Expr.Dup
13 class Expr_Eq repr where
14 eq :: Eq a => repr a -> repr a -> repr Bool
16 instance (Expr_Eq r1, Expr_Eq r2) => Expr_Eq (Dup r1 r2) where
17 eq (x1 `Dup` x2) (y1 `Dup` y2) = eq x1 y1 `Dup` eq x2 y2