From 255ba39c758535589dfd66ffb6efb108919ecc08 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Fri, 11 May 2012 17:52:22 +1000 Subject: Incorporated use of Data.Set and Data.Map --- Theorem.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Theorem.hs') diff --git a/Theorem.hs b/Theorem.hs index c4a36c8..c97a399 100644 --- a/Theorem.hs +++ b/Theorem.hs @@ -4,16 +4,16 @@ module Theorem ( -import Data.List +import qualified Data.Set as Set import TypeVar import Term -data Theorem = Theorem { thmHyp :: [Term] - , thmCon :: Term } deriving (Eq) +data Theorem = Theorem { thmHyp :: Set.Set Term + , thmCon :: Term } deriving (Eq, Ord) instance Show Theorem where - show a = (show . thmHyp $ a) ++ " |- " ++ (show . thmCon $ a) + show a = (show . Set.toList . thmHyp $ a) ++ " |- " ++ (show . thmCon $ a) -- cgit