[Haskell-beginners] Looking for a data structure
Levi Stephen
levi.stephen at gmail.com
Mon Sep 15 19:11:27 EDT 2008
Hi,
I'm looking for how best to represent selections from a set of items.
For example, consider a soccer/football type game.
You would have a Player data type. The game would store a player pool of all
players in that game. Each club will have a number of players from that
player pool, each match will involve that club selecting a number of players
from its list of players.
What is the best way to structure this data and hopefully at the type level
enforce this subset type relationship?
Thanks,
Levi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20080916/913e4569/attachment.htm
More information about the Beginners
mailing list