summaryrefslogtreecommitdiff
path: root/src/senatetypes.hs
blob: 23ef738e9066f9602213829aa2e2d8fa62a06c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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)]