Skip to content

An example of building a shared library (.so) in Haskell and calling it from C and Python.

Notifications You must be signed in to change notification settings

drdaeman/haskell-library-ffi-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haskell/C shared library example

This illustrates building a shared library (.so) in Haskell and calling it from C and Python.

I wrote nothing by myself, but read and pasted the code from those articles:

I've made sure everything compiles and works as expected on Ubuntu 12.04 x86_64 with GHC 7.4.1 from standard Ubuntu repositories. Edit Makefile if you have another version (there's no autoconf, so no libHSrts-*.so version detection).

Use make run to build and run examples.

About

An example of building a shared library (.so) in Haskell and calling it from C and Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published