packages feed

tilia-0.2.0.0: corpora/vendored/comment/bracket/comment-before-the-closing-bracket-of-a-command-out'.hs

{-# LANGUAGE Arrows #-}

module Loom.Treadle where

import Control.Arrow

press :: Arrow a => a Int Int -> a Int Int
press pedal = proc depth -> do
    ( pedal -< depth
      -- held until the shed opens
        )

release :: Arrow a => a Int Int -> a Int Int
release pedal = proc depth ->
    ( pedal -< depth
      -- let go all at once
    )

lift :: Int -> Int
lift = id