From a13d9db820d7cb83e9472e2cf387eb22c26d402d Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Tue, 3 Jan 2017 23:38:20 +1100 Subject: Initial commit --- src/senate.hs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/senate.hs (limited to 'src/senate.hs') diff --git a/src/senate.hs b/src/senate.hs new file mode 100644 index 0000000..8f24d88 --- /dev/null +++ b/src/senate.hs @@ -0,0 +1,28 @@ +module Senate( + SenateCounter, + createSenateCounter, + doCount + ) where + + + +import qualified System.IO as IO +import qualified SenateTypes as STY +import qualified CSV as CSV + + + +data SenateCounter = SenateCounter { inputData : IO.FilePath + , upperMap : STY.UpperMap + , lowerMap : STY.LowerMap } + + + +createSenateCounter :: IO.FilePath -> STY.UpperMap -> STY.LowerMap -> SenateCounter +createSenateCounter = SenateCounter +-- use this function to errorcheck the input data + + + +doCount :: SenateCounter -> STY.Trace -> Int + -- cgit