mouse07410 / h-tst2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

h-tst2

Demo aimed at automating builds of FFI for C code calling Haskell code, within one package/repository. The code itself comes from https://wiki.haskell.org/Calling_Haskell_from_C

The main difference from that example, or the main contribution is use of Cabal to compile and link everything automatically. While it may not make sense for this example, as it's more labor to write the .cabal file than to type two GHC invocations - larger projects would benefit from the ability to build everything with one cabal build invocation.

About

License:MIT License


Languages

Language:Haskell 57.1%Language:C 42.9%