From ea3f1f7736c57747e743a5106b917d2853c62f57 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Thu, 13 Sep 2012 02:14:04 +1000 Subject: Cleaner directory structure, addition of make clean, grouping of library modules into a single package --- Library/Theorem.hs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Library/Theorem.hs (limited to 'Library/Theorem.hs') diff --git a/Library/Theorem.hs b/Library/Theorem.hs new file mode 100644 index 0000000..fc66cc2 --- /dev/null +++ b/Library/Theorem.hs @@ -0,0 +1,19 @@ +module Library.Theorem ( + Theorem(..), + ) where + + + +import qualified Data.Set as Set +import Library.TypeVar +import Library.Term + + + +data Theorem = Theorem { thmHyp :: Set.Set Term + , thmCon :: Term } deriving (Eq, Ord) + + + +instance Show Theorem where + show a = (show . Set.toList . thmHyp $ a) ++ " |- " ++ (show . thmCon $ a) -- cgit