packages feed

tilia-0.2.0.0: corpora/vendored/lexical/negation-under-negative-literals-out.hs

{-# LANGUAGE NegativeLiterals #-}

-- With NegativeLiterals, -1 is a literal and - 1 a negation, so the space
-- after the minus stays.
module Thermostat.Shift where

shift :: Int -> Int
shift x = x + negate (- 1)

lowest :: Int
lowest = -128