foreign import ccall unsafe "foo" hFoo :: Int32 -> IO Int32 {- Imports a function named foo in some object file, and defines the symbol hFoo which can be called with Haskell code. -}
While cabal has support for including a C and C++ libraries in a Haskell package, there are a f...