{"id":24834529,"url":"https://github.com/soupstraw/hafar","last_synced_at":"2025-03-26T03:21:49.591Z","repository":{"id":62436072,"uuid":"215530017","full_name":"Soupstraw/hafar","owner":"Soupstraw","description":"Affine arithmetic library for Haskell","archived":false,"fork":false,"pushed_at":"2020-04-14T12:37:30.000Z","size":63,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-09-20T09:13:57.255Z","etag":null,"topics":["affine-arithmetic","haskell","interval-arithmetic","numerical-methods"],"latest_commit_sha":null,"homepage":"","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/Soupstraw.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}},"created_at":"2019-10-16T11:19:45.000Z","updated_at":"2020-02-26T13:10:44.000Z","dependencies_parsed_at":"2022-11-01T20:46:09.463Z","dependency_job_id":null,"html_url":"https://github.com/Soupstraw/hafar","commit_stats":null,"previous_names":[],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soupstraw%2Fhafar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soupstraw%2Fhafar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soupstraw%2Fhafar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soupstraw%2Fhafar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Soupstraw","download_url":"https://codeload.github.com/Soupstraw/hafar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245580396,"owners_count":20638791,"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":["affine-arithmetic","haskell","interval-arithmetic","numerical-methods"],"created_at":"2025-01-31T03:29:21.424Z","updated_at":"2025-03-26T03:21:49.572Z","avatar_url":"https://github.com/Soupstraw.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hafar\n\nHafar is an implementation of affine arithmetic in haskell.\n\n## Building\n\nTo build the library, simply run \n```\n# stack build\n```\nor if using cabal \n```\n# cabal install --only-dependencies\n# cabal build\n```\n\n## Example\n\nAll operations with affine forms must be done inside the AFM monad.\n\n```\nimport Numeric.Interval hiding (interval)\n\nx1 = do\n  a \u003c- newFromInterval $ 4...6\n  b \u003c- newFromInterval $ 4...6\n  return . interval $ a - b\n\nevalAFM x1 -- evaluates to approximately -2 ... 2\n\nx2 = do\n  a \u003c- newFromInterval $ 4...6\n  return . interval $ a - a\n\nevalAFM x2 -- evaluates to approximately 0 ... 0\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoupstraw%2Fhafar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoupstraw%2Fhafar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoupstraw%2Fhafar/lists"}