packages feed

hackport-0.5.1: cabal/cabal-testsuite/PackageTests/ForeignLibs/src/MyForeignLib/Hello.hs

-- | Module with single foreign export
module MyForeignLib.Hello (sayHi) where

import MyForeignLib.SomeBindings
import MyForeignLib.AnotherVal

foreign export ccall sayHi :: IO ()

-- | Say hi!
sayHi :: IO ()
sayHi = putStrLn $
     "Hi from a foreign library! Foo has value " ++ show valueOfFoo
  ++ " and anotherVal has value " ++ show anotherVal