{"id":20128701,"url":"https://github.com/llvm-hs/llvm-hs-examples","last_synced_at":"2025-04-09T15:50:50.448Z","repository":{"id":50216571,"uuid":"78339874","full_name":"llvm-hs/llvm-hs-examples","owner":"llvm-hs","description":"Examples for Haskell bindings to LLVM","archived":false,"fork":false,"pushed_at":"2021-06-01T20:02:56.000Z","size":51,"stargazers_count":71,"open_issues_count":5,"forks_count":20,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-23T18:05:35.248Z","etag":null,"topics":["jit","llvm","llvm-hs"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/llvm-hs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-08T11:55:48.000Z","updated_at":"2024-10-29T00:37:15.000Z","dependencies_parsed_at":"2022-08-03T22:15:15.362Z","dependency_job_id":null,"html_url":"https://github.com/llvm-hs/llvm-hs-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llvm-hs%2Fllvm-hs-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llvm-hs%2Fllvm-hs-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llvm-hs%2Fllvm-hs-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/llvm-hs%2Fllvm-hs-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/llvm-hs","download_url":"https://codeload.github.com/llvm-hs/llvm-hs-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248063878,"owners_count":21041854,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jit","llvm","llvm-hs"],"created_at":"2024-11-13T20:28:50.597Z","updated_at":"2025-04-09T15:50:50.425Z","avatar_url":"https://github.com/llvm-hs.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"LLVM Haskell Examples\n=====================\n\n[![Build Status](https://travis-ci.org/llvm-hs/llvm-hs-examples.svg?branch=master)](https://travis-ci.org/llvm-hs/llvm-hs-examples)\n\nSimple examples demonstrating the usage of the\n[llvm-hs](https://github.com/llvm-hs/llvm-hs) for generating and manipulating\nLLVM from Haskell.\n\n* [basic](./basic) - Generating LLVM AST and rendering Textual IR\n* [orc](./orc) - JIT Compiling IR on the Eager and Lazy ORC Jit using Compile-On-Demand\n* [arith](./arith) - a minimal JIT compiler for functions of one (real) variable using recursion schemes\n* [irbuilder](./irbuilder) - Basic usage of the LLVM IRBuilder for constructing modules\n\nThese examples require LLVM 9.0. Check that your installed LLVM version is\nprecisely 9.0. If not then follow the install directions in the\n[llvm-hs](https://github.com/llvm-hs/llvm-hs) repository.\n\n```bash\n$ llvm-config --version\n9.0\n```\n\nTo run the examples with Stack:\n\n```bash\n$ stack exec basic\n$ stack exec orc\n$ stack exec arith\n$ stack exec irbuilder\n```\n\nTo load the examples in GHCI:\n\n```bash\n$ stack repl examples:basic\n$ stack repl examples:orc\n$ stack repl examples:arith\n$ stack repl examples:irbuilder\n```\n\nTo run the examples with Cabal:\n\n```bash\n$ cabal run basic\n$ cabal run orc\n$ cabal run arith\n$ cabal run irbuilder\n```\n\nLicense\n-------\n\nMIT License\nCopyright (c) 2017-2020, Stephen Diehl\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllvm-hs%2Fllvm-hs-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fllvm-hs%2Fllvm-hs-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fllvm-hs%2Fllvm-hs-examples/lists"}