packages feed

tilia-0.2.0.0: corpora/vendored/cpp/macro/macro-opening-a-block-above-a-comment.hs

{-# LANGUAGE CPP #-}

-- A use opening a block stays at the column of the block above a comment,
-- or above an alternative that matches a constructor.
module Solver.Decide where

#ifdef ENABLE_TRACE
#define TRACING(x) x
#else
#define TRACING(x)
#endif

decide :: Int -> IO ()
decide v = do
    TRACING(print v)
    -- Increase the decision level.
    print (v + 1)

propagate :: Int -> IO ()
propagate v = do
    TRACING(print v)
    {- The queue head moves on. -}
    print v

classify :: Maybe Int -> String
classify v = case v of
    TRACING(_ | False -> "traced")
    Just _ -> "some"
    Nothing -> "none"