diff options
author | Jed Barber <jjbarber@y7mail.com> | 2012-05-11 13:42:04 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2012-05-11 13:42:04 +1000 |
commit | 26dc9aa2ecda3b8847908a14b7777cc6d561caaf (patch) | |
tree | 4f2372b301a8c912258269f7f7744a6b471d6a7c /Theorem.hs | |
parent | 35850204f1a34f820f8c39bfd1ece2f63fa573f2 (diff) |
Moved datatype declarations and associated functions to separate files
Diffstat (limited to 'Theorem.hs')
-rw-r--r-- | Theorem.hs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Theorem.hs b/Theorem.hs new file mode 100644 index 0000000..c4a36c8 --- /dev/null +++ b/Theorem.hs @@ -0,0 +1,19 @@ +module Theorem ( + Theorem(..), + ) where + + + +import Data.List +import TypeVar +import Term + + + +data Theorem = Theorem { thmHyp :: [Term] + , thmCon :: Term } deriving (Eq) + + + +instance Show Theorem where + show a = (show . thmHyp $ a) ++ " |- " ++ (show . thmCon $ a) |