The llvm-tf package

[Tags:bsd3, library]

High-level bindings to the LLVM compiler toolkit using type families instead of functional dependencies.

We use the same module names as the llvm package, which makes it harder to work with both packages from GHCi. You may use the -hide-package option. We may change the module names later.

A note on versioning: The first two version numbers match the version of LLVM. In order to be able to improve the Haskell API for the same version of LLVM, I use the first three numbers of the Cabal package version as the major version in the sense of the Package Versioning Policy PVP. That is, a bump from 3.0.0 to 3.0.1 may contain substantial API changes, a bump from to may contain API extensions, and a bump from to may contain API-preserving bugfixes.

[Skip to Readme]


Versions,,,,, 3.0.1, 3.0.2,,,,,,,,,,,,, 3.1,,
Dependencies base (>=3 && <5), bytestring (>=0.9), containers, directory, llvm-base (==3.0.*), process, tfp (>=0.7 && <0.9), transformers (==0.3.*) [details]
License BSD3
Author Henning Thieleman, Bryan O'Sullivan, Lennart Augustsson
Maintainer Henning Thieleman <>
Category Compilers/Interpreters, Code Generation
Source repository head: darcs get
this: darcs get --tag
Uploaded Fri Mar 14 14:37:51 UTC 2014 by HenningThielemann
Distributions NixOS:
Downloads 1900 total (15 in the last 30 days)
0 []
Status Docs not available [build log]
All reported builds failed as of 2016-12-18 [all 7 reports]


  • LLVM
    • LLVM.Core
    • LLVM.ExecutionEngine
    • Util
      • LLVM.Util.Arithmetic
      • LLVM.Util.File
      • LLVM.Util.Foreign
      • LLVM.Util.Loop
      • LLVM.Util.Memory
      • LLVM.Util.Optimize


developeroperate in developer modeDisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainer's Corner

For package maintainers and hackage trustees

Readme for llvm-tf

Readme for llvm-tf-

Haskell LLVM bindings

This package provides Haskell bindings for the popular LLVM compiler infrastructure project.


We try to stay up to date with LLVM releases. The current version of this package is compatible with LLVM 2.9 and 2.8. Please understand that the package may or may not work against older LLVM releases; we don't have the time or resources to test across multiple releases.


By default, when you run cabal install, the Haskell bindings will be configured to look for LLVM in /usr/local.

If you have LLVM installed in a different location, e.g. /usr, you can tell the configure script where to find it as follows:

cabal install --configure-option=--with-llvm-prefix=/usr

Package status - what to expect

This package is still under development.

The high level bindings are currently incomplete, so there are some limits on what you can do. Adding new functions is generally easy, though, so don't be afraid to get your hands dirty.

The high level interface is mostly safe, but the type system cannot protect against everything that can go wrong, so take care. And, of course, there's no way to guarantee anything about the generated code.

Staying in touch

There is a low-volume mailing list named haskell-llvm@projects.haskellorg. If you use the LLVM bindings, you should think about joining.

If you want to contribute patches, please clone a copy of the git repository:

git clone git://

Patches are best submitted via the github "pull request" interface.

To file a bug or a request for an enhancement, please use the github issue tracker.