{"id":16315618,"url":"https://github.com/andreasabel/peano.hs","last_synced_at":"2025-05-05T20:05:44.267Z","repository":{"id":74481596,"uuid":"571005636","full_name":"andreasabel/peano.hs","owner":"andreasabel","description":"Peano numbers","archived":false,"fork":false,"pushed_at":"2023-10-23T09:30:20.000Z","size":17,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-05T20:05:00.057Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"strake/peano.hs","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreasabel.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":"2022-11-26T21:04:30.000Z","updated_at":"2023-10-23T11:51:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"e4f51ea5-f004-42af-a284-ebd4de264b07","html_url":"https://github.com/andreasabel/peano.hs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasabel%2Fpeano.hs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasabel%2Fpeano.hs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasabel%2Fpeano.hs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasabel%2Fpeano.hs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreasabel","download_url":"https://codeload.github.com/andreasabel/peano.hs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252569646,"owners_count":21769517,"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":[],"created_at":"2024-10-10T21:58:01.410Z","updated_at":"2025-05-05T20:05:44.217Z","avatar_url":"https://github.com/andreasabel.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"peano - Lazy unary natural numbers\n==================================\n\nThis package provides natural numbers in unary notation\n```haskell\ndata Peano\n  = Zero\n  | Succ Peano\n```\nimplementing `Num`, `Ord` etc.\n\nPurpose\n-------\n\nOne application is to check whether the length of a (potentially long) list is greater than a (small) number.\n\nE.g., without optimization (`-O 0`),\n```haskell\ngenericLength (replicate (10 ^ 6) True) \u003e= (5 :: Peano)\n```\noutperforms the same test for `5 :: Int` by a factor of 10⁵, see [benchmark](bench/Main.hs):\n```\n  length\n    Peano: OK\n      450  ns ±  45 ns\n    Int:   OK\n      136  ms ± 4.1 ms\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasabel%2Fpeano.hs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreasabel%2Fpeano.hs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasabel%2Fpeano.hs/lists"}