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

Duane Johnson duane.johnson at gmail.com
Sun Mar 28 23:12:42 EDT 2010


Ah, just a character away.  Thank you.

Duane

On Mar 28, 2010, at 9:21 PM, Ivan Miljenovic wrote:

> 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
> IvanMiljenovic.wordpress.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100328/c94f00f8/attachment.html


More information about the Haskell-Cafe mailing list