ยค Move, fmove

Geometry, part 2

Types

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

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

Description

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