aboutsummaryrefslogtreecommitdiff
path: root/Theorem.hs
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2012-05-22 09:22:33 +1000
committerJed Barber <jjbarber@y7mail.com>2012-05-22 09:22:33 +1000
commit3ea6bacad9fd7b14d5454d6ea109f5de724fd690 (patch)
tree74a25abf68bcb98bc91d268d06800c8b33808df6 /Theorem.hs
parente438502b5fbbfa22d73927daaa0d93dc650a033b (diff)
Split the Object wrapping from the actual computation in the article commands
Diffstat (limited to 'Theorem.hs')
-rw-r--r--Theorem.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Theorem.hs b/Theorem.hs
index c97a399..699c2e8 100644
--- a/Theorem.hs
+++ b/Theorem.hs
@@ -1,5 +1,7 @@
module Theorem (
Theorem(..),
+
+ nullThm
) where
@@ -17,3 +19,8 @@ data Theorem = Theorem { thmHyp :: Set.Set Term
instance Show Theorem where
show a = (show . Set.toList . thmHyp $ a) ++ " |- " ++ (show . thmCon $ a)
+
+
+
+nullThm :: Theorem
+nullThm = Theorem Set.empty nullTerm