[Haskell-cafe] How can I parameterize the Candidate?

Ivan Miljenovic ivan.miljenovic at gmail.com
Sun Mar 28 22:21:18 EDT 2010

On 29 March 2010 13:13, Duane Johnson <duane.johnson at gmail.com> wrote:
> How can I parameterize the type of the following data class so that any type
> can be a Candidate?
>   data Poll = Poll [Candidate] [Ballot]

data Poll a = Poll [a] [Ballot]

>   data Poll = Poll [a] [Ballot]

So close...

Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com

More information about the Haskell-Cafe mailing list