diff options
author | Jed Barber <jjbarber@y7mail.com> | 2012-08-02 08:31:09 +1000 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2012-08-02 08:31:09 +1000 |
commit | 561175c53ada76ec2bcf69ffcacefc2010d13c2d (patch) | |
tree | a376e0a3739e3933d183096f1f8025d4813a658f /Parse.hs | |
parent | c60a10bc83b7b6ddb2bbd5cc9b7887d43acce882 (diff) |
Moved proof trace output formatting function to Parse.hs
Diffstat (limited to 'Parse.hs')
-rw-r--r-- | Parse.hs | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -6,7 +6,8 @@ module Parse ( separateBy, isComment, isNumber, - isName + isName, + output ) where import Control.Monad( liftM ) @@ -54,3 +55,10 @@ isNumber n = all (Char.isNumber) n isName :: String -> Bool isName s = all ((==) '"') [head s, last s] + + +output :: [String] -> IO () +output [] = return () +output list = do + putStrLn (head list) + output (tail list) |