ยค Move, fmove

Geometry, part 2

Types

class Move a where
   move :: Point -> a -> a
instance Move a => Move (Maybe a)
instance Move Point
instance Move Rect
instance Move Line
instance Move DrawCommand

fmove :: (Functor f, Move a) => Point -> f a -> f a

Description

A class for things that have a position and can be moved.