diff options
author | Jed Barber <jjbarber@y7mail.com> | 2012-05-11 17:52:22 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2012-05-11 17:52:22 +1000 |
commit | 255ba39c758535589dfd66ffb6efb108919ecc08 (patch) | |
tree | cd76b9e5edfd85b8bb9d61d151a238134e0ebd83 /Theorem.hs | |
parent | 6b9b4e90e4f3bea26834d641899621ad02285b14 (diff) |
Incorporated use of Data.Set and Data.Map
Diffstat (limited to 'Theorem.hs')
-rw-r--r-- | Theorem.hs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |