The llvm-hs package

[ Tags: bsd3, code-generation, compilers-interpreters, library ] [ Propose Tags ]

llvm-hs is a set of Haskell bindings for LLVM Unlike other current Haskell bindings, it uses an ADT to represent LLVM IR (, and so offers two advantages: it handles almost all of the stateful complexities of using the LLVM API to build IR; and it supports moving IR not only from Haskell into LLVM C++ objects, but the other direction - from LLVM C++ into Haskell.


Versions,,, 4.2.0, 5.0.0, 5.1.0, 5.1.1, 5.1.2, 5.1.3
Change log
Dependencies array (>=, attoparsec (>=0.13), base (>=4.8 && <5), bytestring (>=, containers (>=, exceptions (>=0.8), llvm-hs-pure (==5.1.*), mtl (>=2.1.3), semigroups (==0.18.*), template-haskell (>=, transformers (>=0.3 && <0.6), utf8-string (>=0.3.7) [details]
License BSD3
Copyright (c) 2013 Benjamin S. Scarlet and Google Inc.
Author Anthony Cowley, Stephen Diehl, Moritz Kiefer <>, Benjamin S. Scarlet
Maintainer Anthony Cowley, Stephen Diehl, Moritz Kiefer <>
Category Compilers/Interpreters, Code Generation
Home page
Bug tracker
Source repo head: git clone git:// -b llvm-4
Uploaded Sat Jan 6 14:17:59 UTC 2018 by cocreature
Updated Tue Feb 13 20:18:37 UTC 2018 by cocreature to revision 1   [What is this?]
Distributions LTSHaskell:5.1.3, NixOS:5.1.3, Stackage:5.1.3
Downloads 2369 total (126 in the last 30 days)
Rating 2.5 (votes: 4) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI





link against llvm shared rather than static library


compile C(++) shims with debug info for ease of troubleshooting


Add semigroups to build-depends for Data.List.NonEmpty. This will be selected automatically by cabal.


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


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees