Battlesnake.Core.Direction
data Direction Source #
The possible directions your snake can move in. See: https://docs.battlesnake.com/api/requests/move
Constructors
Defined in Battlesnake.Core.Direction
Methods
toJSON :: Direction -> Value #
toEncoding :: Direction -> Encoding #
toJSONList :: [Direction] -> Value #
toEncodingList :: [Direction] -> Encoding #
showsPrec :: Int -> Direction -> ShowS #
show :: Direction -> String #
showList :: [Direction] -> ShowS #
(==) :: Direction -> Direction -> Bool #
(/=) :: Direction -> Direction -> Bool #
compare :: Direction -> Direction -> Ordering #
(<) :: Direction -> Direction -> Bool #
(<=) :: Direction -> Direction -> Bool #
(>) :: Direction -> Direction -> Bool #
(>=) :: Direction -> Direction -> Bool #
max :: Direction -> Direction -> Direction #
min :: Direction -> Direction -> Direction #