packages feed

hackport-0.8.0.0: cabal/cabal-testsuite/PackageTests/PreProcess/Hsc2HsOptions/Main.hs

{-# LANGUAGE CPP #-}
module Main where

import Foo

bar :: Int
#ifdef TEST_OPTION
bar = TEST_OPTION
#else
bar = 0
#endif

main :: IO ()
main = do
    putStrLn $ "hsc2hs value: " ++ show foo
    putStrLn $ "ghc value: " ++ show bar