summaryrefslogtreecommitdiff
path: root/src/main.hs
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-01-08 23:49:21 +1100
committerJed Barber <jjbarber@y7mail.com>2017-01-08 23:49:21 +1100
commit82cb1c4265c0c4a55fcd3fec9bcaec6647d11030 (patch)
tree07f226d863fee627f20fd5a1713290b4c2379ff0 /src/main.hs
parent1652e49e17e4f4dead4bd23694a2b99a06048023 (diff)
Should be operating at acceptable speed/memusage rates now
Diffstat (limited to 'src/main.hs')
-rw-r--r--src/main.hs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main.hs b/src/main.hs
index 6e95f2a..c3db4ad 100644
--- a/src/main.hs
+++ b/src/main.hs
@@ -67,7 +67,9 @@ main = do
args <- Env.getArgs
counter <- Sen.createSenateCounter (head args) above below
let testTraces = (map (:[]) (zip [1,1..] below))
- results = map (\x -> putStrLn . (((snd . head $ x) ++ " ") ++) . show . (Sen.doCount counter) $ x) testTraces
- sequence_ results
+ results <- mapM (Sen.doCount counter) testTraces
+ let func (n,c) = putStrLn (c ++ " " ++ (show n))
+ output = map func (zip results below)
+ sequence_ output