{"id":13420983,"url":"https://github.com/drdaeman/haskell-library-ffi-example","last_synced_at":"2025-04-30T13:19:39.497Z","repository":{"id":4481545,"uuid":"5620576","full_name":"drdaeman/haskell-library-ffi-example","owner":"drdaeman","description":"An example of building a shared library (.so) in Haskell and calling it from C and Python.","archived":false,"fork":false,"pushed_at":"2012-08-30T20:45:37.000Z","size":100,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T02:51:07.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drdaeman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-08-30T20:37:35.000Z","updated_at":"2020-06-17T07:20:36.000Z","dependencies_parsed_at":"2022-08-22T13:00:37.744Z","dependency_job_id":null,"html_url":"https://github.com/drdaeman/haskell-library-ffi-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drdaeman%2Fhaskell-library-ffi-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drdaeman%2Fhaskell-library-ffi-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drdaeman%2Fhaskell-library-ffi-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drdaeman%2Fhaskell-library-ffi-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drdaeman","download_url":"https://codeload.github.com/drdaeman/haskell-library-ffi-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242656037,"owners_count":20164431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T22:01:45.740Z","updated_at":"2025-03-09T06:33:07.442Z","avatar_url":"https://github.com/drdaeman.png","language":"C","funding_links":[],"categories":["TODO scan for Android support in followings"],"sub_categories":[],"readme":"Haskell/C shared library example\n================================\n\nThis illustrates building a shared library (`.so`) in Haskell and calling it from C and Python.\n\nI wrote nothing by myself, but read and pasted the code from those articles:\n\n- [Buildings plugins as Haskell shared libs][1]\n- [Building a shared library in Haskell][2]\n- [Using both Python \u0026 Haskell with ctypes][3]\n\nI've made sure everything compiles and works as expected on Ubuntu 12.04 x86_64 with GHC 7.4.1\nfrom standard Ubuntu repositories. Edit `Makefile` if you have another version (there's no autoconf,\nso no `libHSrts-*.so` version detection).\n\nUse `make run` to build and run examples.\n\n\n[1]: http://www.well-typed.com/blog/30\n[2]: http://weblog.haskell.cz/pivnik/building-a-shared-library-in-haskell/\n[3]: http://wiki.python.org/moin/PythonVsHaskell#Using_both_Python_.26_Haskell_with_ctypes_.28-.3B\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrdaeman%2Fhaskell-library-ffi-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrdaeman%2Fhaskell-library-ffi-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrdaeman%2Fhaskell-library-ffi-example/lists"}