bscarlet / llvm-general

Rich LLVM bindings for Haskell (with transfer of LLVM IR to and from C++, detailed compilation pass control, etc.)
http://hackage.haskell.org/package/llvm-general
132 stars 38 forks source link

[llvm-3.5] Support GHCi and TH #199

Open tmcdonell opened 7 years ago

tmcdonell commented 7 years ago

Enables llvm-general to be used out-of-the-box with GHCi and TemplateHaskell whenever possible. This requires the LLVM shared library to be available, but only if you use GHCi/TH; regular compiles work as usual. Since cabal dependencies can not specify flags, this also makes llvm-general easier to work with as a dependency.

Requires Cabal-1.22 or newer, otherwise keeps the old behaviour.

Fixes #84, #85. Ping #197.

Current behaviour

New behaviour

tmcdonell commented 7 years ago

@bscarlet any comment on this?