packages feed

tilia-0.2.0.0: corpora/vendored/cpp/directive/directive-above-a-leading-separator.hs

{-# LANGUAGE CPP #-}

-- A directive written above a bar or a comma leading the line under it goes
-- above the bar or the comma, which go with the part they lead.
module Bakery.Shelf where

data Shelf
  = Empty
#define WITH_RACKS 1
  | Racks Int
#ifdef WITH_TRAYS
#endif
  | Trays Int
#if 0
-- Bins are not sold yet.
#endif
  | Bins Int

data Label = Label
  { name :: String
#define WITH_PRICE 1
  , price :: Int
  }