License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- type IngredientList e = [(Count, e)]
- type Count = Int
- getCost :: IngredientList e -> Int
Documentation
type IngredientList e = [(Count, e)] Source #
An ingredient list is a list of entities with multiplicity. It is polymorphic in the entity type so that we can use either entity names when serializing, or actual entity objects while the game is running.
A convenient synonym to remind us when an Int
is supposed to
represent how many of something we have.
getCost :: IngredientList e -> Int Source #