tilia-0.2.0.0: corpora/vendored/pragma/declaration/pragmas-above-the-haddock-of-what-they-name-out.hs
module Shop.Price where
{-# DEPRECATED total "Use sumOf" #-}
-- | Add the prices up.
total :: [Int] -> Int
total = sum
{-# INLINE discount #-}
{-# WARNING discount "Rounds down" #-}
-- | Take a tenth off.
discount :: Int -> Int
discount p = p - p `div` 10
{-# INLINE tax #-}
-- | Add a fifth on.
tax :: Int -> Int
tax p = p + p `div` 5
{-# NOINLINE rate #-}
-- | The price of nothing.
free :: Int
free = 0
rate :: Int
rate = 5