type Candidate = String
data Poll = Poll [Candidate] [Ballot]
data Poll = Poll [a] [Ballot]
>> Not in scope: type variable `a'
For context: I am building a voting library that addresses the issue of polarized American politics by implementing the Virtual Round Robin electoral method with a Maximum Majority Voting algorithm for breaking cycles. The beginnings of the library are available at http://github.com/canadaduane/votelib/blob/master/vote.hs
What is a good approach to the parameterized type issue? Thank you,
Duane Johnson