Sha256: d49e3d13c4b34f287bc26b63b8cbc5bc2a80bdd13357cad7673c310e9bb8b80d
Contents?: true
Size: 855 Bytes
Versions: 58
Compression:
Stored size: 855 Bytes
Contents
module Robot ( Bearing(East,North,South,West) , bearing , coordinates , mkRobot , simulate , turnLeft , turnRight ) where data Bearing = North | East | South | West deriving (Eq, Show) data Robot = Dummy bearing :: Robot -> Bearing bearing = error "You need to implement this function." coordinates :: Robot -> (Integer, Integer) coordinates = error "You need to implement this function." mkRobot :: Bearing -> (Integer, Integer) -> Robot mkRobot = error "You need to implement this function." simulate :: Robot -> String -> Robot simulate = error "You need to implement this function." turnLeft :: Bearing -> Bearing turnLeft = error "You need to implement this function." turnRight :: Bearing -> Bearing turnRight = error "You need to implement this function."
Version data entries
58 entries across 58 versions & 1 rubygems