ยค 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 b) => Point -> f b -> f b

Description

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