tilia-0.2.0.0: corpora/vendored/cpp/whole/conditional-with-an-elif-and-an-empty-branch.hs
{-# LANGUAGE CPP #-}
module Kiln.Vents where
-- A conditional after the one binding of a block, with an #elif and a
-- branch that holds nothing, comes out as one conditional, as written.
flues :: Int
flues = lit
where
lit = 1
#ifdef SEALED
#elif defined(CHIMNEY)
drawn = 2
#else
drawn = 3
#endif
dampers :: Int
dampers = shut
where
shut = 0
#ifdef SEALED
tight = 1
#elif defined(CHIMNEY)
#else
tight = 2
#endif
vents :: Int
vents = open
where
open = 2
#ifdef SEALED
#elif defined(DAMPER)
#if DAMPER > 1
shut = 1
#endif
#else
shut = 0
#endif