sakshamsharma / ffi-hs-testing

Demo code for static/dynamic linking and FFI from Haskell to Golang.

Home Page:http://sakshamsharma.com/2018/02/haskell-golang-ffi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ffi-hs-testing

This repository demonstrates a possible bug in ghc-pkg, by showing 4 possible linking usecases, out of which the library-archive-linking usecase requires a non-ideal method to work.

This is described in much more detail on my blog.

Notice the package.yaml file in each of the 4 directories. It reveals important information about which component is linked to the library. <dir-name>.cabal mostly mirrors the package.yaml file (it is generated automatically by hpack) so you can ignore that. Please remember to make the appropriate type of libraries (archive/shared) in each of the folders according to the README files.

About

Demo code for static/dynamic linking and FFI from Haskell to Golang.

http://sakshamsharma.com/2018/02/haskell-golang-ffi/


Languages

Language:Haskell 59.5%Language:Go 15.4%Language:Nix 15.1%Language:Makefile 9.9%