{"id":24458263,"url":"https://github.com/arrayfire/arrayfire-haskell","last_synced_at":"2026-03-06T02:41:41.206Z","repository":{"id":35819918,"uuid":"157932935","full_name":"arrayfire/arrayfire-haskell","owner":"arrayfire","description":"Haskell bindings to ArrayFire","archived":false,"fork":false,"pushed_at":"2024-12-14T00:02:35.000Z","size":415,"stargazers_count":60,"open_issues_count":17,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-13T04:07:31.226Z","etag":null,"topics":["array","gpu","haskell","image-processing","linear-algebra","statistics","visualization"],"latest_commit_sha":null,"homepage":"http://hackage.haskell.org/package/arrayfire","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arrayfire.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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}},"created_at":"2018-11-16T23:35:00.000Z","updated_at":"2024-12-14T00:02:39.000Z","dependencies_parsed_at":"2024-05-04T22:31:10.911Z","dependency_job_id":"bb7ef26b-b80f-4727-a3ca-305fec622ec5","html_url":"https://github.com/arrayfire/arrayfire-haskell","commit_stats":{"total_commits":144,"total_committers":3,"mean_commits":48.0,"dds":0.02083333333333337,"last_synced_commit":"8dd84948500a7a619a898e40b5c2bd628e23b623"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arrayfire%2Farrayfire-haskell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arrayfire%2Farrayfire-haskell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arrayfire%2Farrayfire-haskell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arrayfire%2Farrayfire-haskell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arrayfire","download_url":"https://codeload.github.com/arrayfire/arrayfire-haskell/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661705,"owners_count":21141450,"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":["array","gpu","haskell","image-processing","linear-algebra","statistics","visualization"],"created_at":"2025-01-21T03:13:21.732Z","updated_at":"2026-03-06T02:41:36.166Z","avatar_url":"https://github.com/arrayfire.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"## \u003ca href=\"http://arrayfire.com/\"\u003e\u003cimg src=\"http://arrayfire.com/logos/arrayfire_logo_whitebkgnd.png\" width=\"300\"\u003e\u003c/a\u003e\n`ArrayFire` is a general-purpose library that simplifies the process of developing software that targets parallel and massively-parallel architectures including CPUs, GPUs, and other hardware acceleration devices.\n\n`arrayfire-haskell` is a [Haskell](https://haskell.org) binding to [ArrayFire](https://arrayfire.com).\n\n## Table of Contents\n - [Installation](#Installation)\n   - [Haskell Installation](#haskell-installation)\n - [Documentation](#Documentation)\n - [Hacking](#Hacking)\n - [Example](#Example)\n\n\n## Installation\nInstall `ArrayFire` via the download page.\n  - https://arrayfire.com/download/\n\n`ArrayFire` can also be fetched from [nixpkgs](https://github.com/nixos/nixpkgs) `master`.\n\n### Haskell Installation\n\n`arrayfire` can be installed w/ `cabal`, `stack` or `nix`.\n\n```\ncabal install arrayfire\n```\n\n```\nstack install arrayfire\n```\n\n\nAlso note, if you plan on using ArrayFire's visualization features, you must install `fontconfig` and `glfw` on OSX or Linux.\n\n## Documentation\n  - [Hackage](http://hackage.haskell.org/package/arrayfire)\n  - [ArrayFire](http://arrayfire.org/docs/gettingstarted.htm)\n\n## Hacking\nTo hack on this library locally, complete the installation step above. We recommend installing the [nix](https://nixos.org/nix/download.html) package manager to facilitate development.\n\nAfter the above tools are installed, clone the source from Github.\n\n```bash\ngit clone git@github.com:arrayfire/arrayfire-haskell.git\ncd arrayfire-haskell\n```\n\nTo build and run all tests in response to file changes\n\n```bash\nnix-shell --run test-runner\n```\n\nTo perform interactive development w/ `ghcid`\n\n```bash\nnix-shell --run ghcid\n```\n\nTo interactively evaluate code in the `repl`\n\n```bash\nnix-shell --run repl\n```\n\nTo produce the haddocks and open them in a browser\n\n```bash\nnix-shell --run docs\n```\n\n\n## Example\n```haskell\n{-# LANGUAGE TypeApplications, ScopedTypeVariables #-}\nmodule Main where\n\nimport qualified ArrayFire as A\nimport           Control.Exception (catch)\n\nmain :: IO ()\nmain = print newArray `catch` (\\(e :: A.AFException) -\u003e print e)\n  where\n    newArray = A.matrix @Double (2,2) [ [1..], [1..] ] * A.matrix @Double (2,2) [ [2..], [2..] ]\n\n{-|\n\nArrayFire Array\n[2 2 1 1]\n    2.0000     6.0000\n    2.0000     6.0000\n\n-}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farrayfire%2Farrayfire-haskell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farrayfire%2Farrayfire-haskell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farrayfire%2Farrayfire-haskell/lists"}