Tutorial by Topics: foreign

#[link(name = "snappy")] // the foreign library to be linked to (optional) extern { ... } // list of function signatures in the foreign library
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...

Page 1 of 1