From 26dc9aa2ecda3b8847908a14b7777cc6d561caaf Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Fri, 11 May 2012 13:42:04 +1000 Subject: Moved datatype declarations and associated functions to separate files --- Theorem.hs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Theorem.hs (limited to 'Theorem.hs') 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) -- cgit