tilia-0.2.0.0: corpora/vendored/cpp/configuration/nested-conditionals-in-branches-that-do-not-parse-together.hs
{-# LANGUAGE CPP #-}
module Sensor.Read where
infixr 5 +++
(+++) :: [Int] -> [Int] -> [Int]
(+++) = (++)
calibrate :: Bool -> Int
calibrate warm =
#if defined(THERMISTOR)
if warm then 1 else 2
#else
#if defined(THERMOCOUPLE)
case warm of _ -> 3
#else
#error "no sensor to calibrate"
#endif
#endif
readings :: [Int]
readings = [1] +++ [2] <> [3]
<> [4] +++ [5]