{"id":40218934,"url":"https://github.com/anut-py/h-raylib","last_synced_at":"2026-01-19T22:00:38.646Z","repository":{"id":53205036,"uuid":"520665966","full_name":"Anut-py/h-raylib","owner":"Anut-py","description":"Haskell bindings for raylib","archived":false,"fork":false,"pushed_at":"2026-01-18T02:54:47.000Z","size":2860,"stargazers_count":123,"open_issues_count":6,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2026-01-18T14:42:27.158Z","etag":null,"topics":["bindings","game","game-library","haskell","opengl","raylib","raylib-binding"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/h-raylib","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anut-py.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-08-02T22:24:54.000Z","updated_at":"2026-01-18T02:54:51.000Z","dependencies_parsed_at":"2023-10-14T18:22:28.599Z","dependency_job_id":"2d368ca6-892e-4420-a1ba-254cb1621834","html_url":"https://github.com/Anut-py/h-raylib","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/Anut-py/h-raylib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anut-py%2Fh-raylib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anut-py%2Fh-raylib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anut-py%2Fh-raylib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anut-py%2Fh-raylib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anut-py","download_url":"https://codeload.github.com/Anut-py/h-raylib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anut-py%2Fh-raylib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28587019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T20:45:59.482Z","status":"ssl_error","status_checked_at":"2026-01-19T20:45:41.500Z","response_time":67,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bindings","game","game-library","haskell","opengl","raylib","raylib-binding"],"created_at":"2026-01-19T22:00:36.399Z","updated_at":"2026-01-19T22:00:38.640Z","avatar_url":"https://github.com/Anut-py.png","language":"Haskell","readme":"# h-raylib: Haskell bindings for Raylib\n\n[![cabal-build](https://github.com/Anut-py/h-raylib/actions/workflows/cabal-build.yml/badge.svg)](https://github.com/Anut-py/h-raylib/actions/workflows/cabal-build.yml) [![nix-build](https://github.com/Anut-py/h-raylib/actions/workflows/nix-build.yml/badge.svg)](https://github.com/Anut-py/h-raylib/actions/workflows/nix-build.yml) [![Hackage Version](https://img.shields.io/hackage/v/h-raylib)](https://hackage.haskell.org/package/h-raylib)\n\n\nThis library includes Haskell bindings to the [Raylib](https://www.raylib.com/) library.\n\n[Basic usage](#basic-usage) | [Platform specific requirements](#platform-specific-requirements) | [Advanced usage](#advanced-usage) | [GHCi](#running-in-ghci) | [Documentation](#documentation) | [FAQ and help](#faq-and-help)\n\n## Basic usage\n\nTo use this package, include it as a dependency in your cabal file.\n\n```cabal\nbuild-depends:\n  base,\n  # ...\n  h-raylib\n```\n\nIt should work out of the box. See [Advanced usage](#advanced-usage) for more complex use cases.\n\n## Platform specific requirements\n\nThis library is known to work on Windows, Linux, and Mac. It may not work properly on other platforms, so don't hesitate to report issues on the GitHub repository.\n\n### Windows/Mac\n\nh-raylib should automatically work if you do not disable the `detect-platform` flag. In that case, you may skip this step.\n\n**If you do disable the `detect-platform` flag when building,** use the `platform-windows` or `platform-mac` flag when building.\n\n### Linux\n\nYou may need to run the following to install [X11](https://en.wikipedia.org/wiki/X_Window_System) (a window manager for Linux).\n\n```bash\nsudo apt-get install libx11-dev libxrandr-dev libxi-dev libxcursor-dev libxinerama-dev\n```\n\nNow, h-raylib should automatically work if you do not disable the `detect-platform` flag. In that case, you may skip the following.\n\n**If you do disable the `detect-platform` flag when building,** use the `platform-linux` flag when building\n\n### BSD *(Experimental)*\n\nh-raylib should automatically work if you do not disable the `detect-platform` flag. In that case, you may skip this step.\n\n**If you do disable the `detect-platform` flag when building,** use the `platform-bsd` flag when building.\n\n### Other platforms\n\nThis library has not yet been tested on other platforms (raylib supports\nAndroid, Raspberry Pi, and DRM, all of which have not been implemented in\nh-raylib). Anybody willing to try is welcome.\n\nWeb support has not been finalized yet.\n\nIf you get it working on other platforms, please create a pull request in the\nGitHub repository and update `h-raylib.cabal` with the relevant config.\n\n### Advanced usage\n\nYour platform-specific dependencies will automatically be built by default. You\nmay want to disable this behavior. You can disable the `detect-platform` flag to\nachieve this.\n\nYou can do this through the command line when running your project, like so\n\n```sh\ncabal run --constraint=\"h-raylib -detect-platform\"\n```\n\nOr you can add it to your `cabal.project` file.\n\n```\npackage h-raylib\n  flags: -detect-platform\n```\n\nThe flags `platform-windows`, `platform-mac`, `platform-linux`, and `platform-bsd` are also\nsupported if you want to build for a different platform.\n\nIf you prefer not to use the `lens` package, you may enable the `disable-lens` flag. This\nremoves the dependency on `lens` and disables `Raylib.Util.Lenses`.\n\n## Running in GHCi\n\nYou can use this library in GHCi just like any other library, but you will need to add `--constraint=\"h-raylib +ghci\"` to the command. For example, in the root folder of this repository, you could use the command below to use the library through GHCi.\n\n```\ncabal repl --constraint=\"h-raylib +ghci\"\n```\n\nYou may need to use `:set -fno-ghci-sandbox` after entering the REPL to fix problems with multithreaded execution.\n\nOn Windows, you may lose joystick support when running in GHCi.\n\n## Documentation\n\nFor documentation: [DOCUMENTATION.md](https://github.com/Anut-py/h-raylib/blob/master/DOCUMENTATION.md).\n\nFor contributors: [CONTRIBUTING.md](https://github.com/Anut-py/h-raylib/blob/master/CONTRIBUTING.md).\n\nIf you want to request a feature, create an issue in the GitHub repo. Please check [the roadmap](https://github.com/Anut-py/h-raylib/blob/master/CONTRIBUTING.md#h-raylib-roadmap) to see if the feature has already been planned.\n\n## FAQ and help\n\n- When I try to run an h-raylib program I get the error `The code execution cannot proceed because libwinpthread-1.dll was not found. Reinstalling the program may fix this problem.`\n  - See [#14](https://github.com/Anut-py/h-raylib/issues/14)\n \n- When I try to compile an h-raylib program I get the error `Missing (or bad) C libraries: gcc_eh`\n  - See [#36](https://github.com/Anut-py/h-raylib/issues/36)\n\nIf you find a bug, please [create an issue on GitHub](https://github.com/Anut-py/h-raylib/issues). There are probably some bindings that are incomplete or do not work properly, so if something seems wrong then it is most likely a bug.\n\nIf you have a question about the library that is not related to a bug, ask it on [GitHub discussions](https://github.com/Anut-py/h-raylib/discussions) or in the [Haskell GameDev Discord server](https://discord.gg/aKHNgxc59t).\n\n## License\n\nThis project is licensed under the Apache License 2.0. See more in `LICENSE`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanut-py%2Fh-raylib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanut-py%2Fh-raylib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanut-py%2Fh-raylib/lists"}