License | BSD-3-Clause |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Conversions from native Haskell values to values in the swarm language.
Patterns
Conversions
class Valuable a where Source #
Conversion from native Haskell types to their swarm-lang equivalents, useful for implementing swarm commands in Haskell.
Instances
Valuable Int32 Source # | |
Valuable Entity Source # | |
Valuable Location Source # | |
Valuable Robot Source # | |
Valuable Direction Source # | |
Valuable Int Source # | |
Valuable a => Valuable (V2 a) Source # | |
Valuable a => Valuable (Maybe a) Source # | |
(Valuable a, Valuable b) => Valuable (Either a b) Source # | |
(Valuable a, Valuable b) => Valuable (a, b) Source # | |
Defined in Swarm.Game.Value |