aboutsummaryrefslogtreecommitdiff
path: root/src/SenateTypes.hs
diff options
context:
space:
mode:
authorJed Barber <jjbarber@y7mail.com>2017-01-10 01:01:24 +1100
committerJed Barber <jjbarber@y7mail.com>2017-01-10 01:01:24 +1100
commitc0d0b285cf2a6d6151e66148a022d67d46daca31 (patch)
tree231ea6c982cd98c06d535ca03f48607fc0ec5827 /src/SenateTypes.hs
parent50adbf5cdf9ef6924c47b6738dfd6139d19a0438 (diff)
Candidate info parsing added, fixed potential bug in Counter construction
Diffstat (limited to 'src/SenateTypes.hs')
-rw-r--r--src/SenateTypes.hs34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/SenateTypes.hs b/src/SenateTypes.hs
deleted file mode 100644
index 3691034..0000000
--- a/src/SenateTypes.hs
+++ /dev/null
@@ -1,34 +0,0 @@
-module SenateTypes(
- Ranking,
- Position,
- CandidateID,
- AboveLineBallot,
- BelowLineBallot,
- Criteria
- ) where
-
-
-
-
--- fairly obvious, rankings, positions and candidateIDs are all numbers
-type Ranking = Int
-type Position = Int
-type CandidateID = String
-
-
-
--- positions in the uppermap list correspond to the boxes above the line,
--- and the lists of candidateIDs are the boxes below the line
-type AboveLineBallot = [[Position]]
-
-
-
--- a list of candidates in the order of how they were placed below the line
-type BelowLineBallot = [CandidateID]
-
-
-
--- represents a criteria used for finding ballots that voted a specific
--- way, for example voted for candidate C as #1, candidate F as #2, etc
-type Criteria = [(Ranking,CandidateID)]
-