packages feed

tilia-0.2.0.0: corpora/vendored/haddock/comment/comment-under-a-moved-haddock-out'.hs

module Track.Step
    ( Step (..)
    , Stride (..)
    , left -- ^ A step to the left.

      -- Steps are counted from the start.
    , right
    )
where

data Step
    = Int -- metres
      -- ^ How far to the left.

        -- measured along the track
        :<=
        -- | How far to the right.
        Int

data Stride
    = Int -- \^ how far
      -- ^ A stride to the left.

        -- counted in paces
        :<<
        Int
    | Stride
        -- | How many paces.

        -- taken at a walk
        Int
        Bool

left :: Step
left = 1 :<= 0

right :: Step
right = 0 :<= 1