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

Version Path
trackler-2.0.8.24 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.23 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.22 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.21 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.20 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.19 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.18 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.17 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.16 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.15 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.14 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.13 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.12 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.11 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.10 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.9 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.8 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.7 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.6 tracks/haskell/exercises/robot-simulator/src/Robot.hs
trackler-2.0.8.5 tracks/haskell/exercises/robot-simulator/src/Robot.hs