diff options
author | Jed Barber <jjbarber@y7mail.com> | 2017-01-06 00:11:00 +1100 |
---|---|---|
committer | Jed Barber <jjbarber@y7mail.com> | 2017-01-06 00:11:00 +1100 |
commit | ed35d03fbdafce4d6d41d8731318304a8eb7ff61 (patch) | |
tree | 42a8fa732ae779a71db2561c93f63979cc4a5fe6 /src/senatetypes.hs | |
parent | a13d9db820d7cb83e9472e2cf387eb22c26d402d (diff) |
Ballot counting working, but results differ slightly from AEC counts
Diffstat (limited to 'src/senatetypes.hs')
-rw-r--r-- | src/senatetypes.hs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/senatetypes.hs b/src/senatetypes.hs deleted file mode 100644 index 23ef738..0000000 --- a/src/senatetypes.hs +++ /dev/null @@ -1,28 +0,0 @@ -module SenateTypes( - CandidateID, - UpperLowerMap - ) where - - - --- fairly obvious, rankings and candidateIDs are both numbers -type Ranking = Int -type CandidateID = Int - - - --- positions in the uppermap list correspond to the boxes above the line, --- and the lists of candidateIDs are the boxes below the line -type UpperMap = [[CandidateID]] - - - --- merely a list in the order of how candidates were placed below the line -type LowerMap = [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 Trace = [(Ranking,CandidateID)] - |