packages feed

tilia-0.2.0.0: corpora/vendored/line-break/column-limit/operands-of-a-chain-before-the-last-out'.hs

module Loom.Weave where

warp threads =
    fmap
        (tension . shuttle)
        (filter (not . frayed) (zip threads (cycle loomPalette)))
        <> leftovers threads

weft rows =
    rows
        ++ [ measure (fromIntegral (length rows)) (shuttleSpeed loomSettings)
           , finish
           ]
        ++ remnants rows

knot strand rest =
    strand
        : ( if knotted strand
                && any (`elem` [Warp, Weft, Selvedge, Heddle]) rest
                then Reed
                else Shed
          )
        : rest