Skip to content

Commit

Permalink
Update src/swarm-scenario/Swarm/Game/Device.hs
Browse files Browse the repository at this point in the history
Co-authored-by: Brent Yorgey <[email protected]>
  • Loading branch information
kostmo and byorgey authored Mar 16, 2024
1 parent bacc71e commit fdddaee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/swarm-scenario/Swarm/Game/Device.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import Swarm.Game.Ingredients
import Swarm.Language.Capability (Capability, constByCaps)
import Swarm.Language.Syntax (Const)

-- This wrapper exists so that YAML can be parsed
-- either as a list of 'Capability' or as a Map.
-- | The 'Capabilities e' wrapper type stores information of type @e@ for each of some set of capabilities.
-- For example, @e@ could be a list of ingredients needed to exercise a capability, or a set of devices capable of providing a capability.
newtype Capabilities e = Capabilities
{ getMap :: Map Capability e
}
Expand Down

0 comments on commit fdddaee

Please sign in to comment.