Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 878 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 878 Bytes

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.