packages feed

tilia-0.2.0.0: corpora/vendored/expression/operator/left-section-after-a-block-out'.hs

{-# LANGUAGE MultiWayIf #-}

-- The operator of a left section on a line of its own after a block puts
-- the block's items a step further in where at their column it would be
-- taken into the block: a minus, which would begin another item, and any
-- operator after a multi-way if.
module Price.Discount where

lowered =
    map
        ( case tier of
                Gold -> 10
                _ -> 5
            -
        )

clamped =
    map
        ( if
                | strict -> floor
                | otherwise -> ceiling
            <>
        )

joined =
    map
        ( do
            base
            <>
        )