{"id":15698588,"url":"https://github.com/robrix/interval-functor","last_synced_at":"2025-04-30T15:22:55.525Z","repository":{"id":56844607,"uuid":"278715375","full_name":"robrix/interval-functor","owner":"robrix","description":"General purpose intervals of functors.","archived":false,"fork":false,"pushed_at":"2024-10-04T12:54:57.000Z","size":332,"stargazers_count":6,"open_issues_count":5,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-30T15:22:38.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/robrix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-07-10T19:19:40.000Z","updated_at":"2024-10-04T12:53:19.000Z","dependencies_parsed_at":"2024-10-24T03:51:57.723Z","dependency_job_id":"b3b38bfc-9b51-4f3d-b49b-12881ba0d8f0","html_url":"https://github.com/robrix/interval-functor","commit_stats":{"total_commits":362,"total_committers":1,"mean_commits":362.0,"dds":0.0,"last_synced_commit":"0914e3804e30f784520e68f741148e3ac605aa5a"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrix%2Finterval-functor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrix%2Finterval-functor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrix%2Finterval-functor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robrix%2Finterval-functor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robrix","download_url":"https://codeload.github.com/robrix/interval-functor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251729806,"owners_count":21634293,"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-03T19:30:25.933Z","updated_at":"2025-04-30T15:22:55.475Z","avatar_url":"https://github.com/robrix.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `interval-functor`\n\n[![Hackage](https://img.shields.io/hackage/v/interval-functor.svg)](https://hackage.haskell.org/package/interval-functor)\n[![BSD3 license](https://img.shields.io/badge/license-BSD3-blue.svg)](LICENSE)\n[![Build Status](https://action-badges.now.sh/robrix/interval-functor)](https://github.com/robrix/interval-functor/actions)\n\nThis is a Haskell package defining an `Interval` datatype parameterized by the type of endpoints and the type of their coordinates. For example, it can represent a simple one-dimensional range:\n\n```haskell\nimport Data.Functor.Identity\nimport Data.Functor.Interval\n\nzeroInterval :: Num a =\u003e Interval Identity a\nzeroInterval = point 0\n```\n\nor a multi-dimensional region:\n\n```haskell\nimport Data.Functor.Interval\nimport Linear.V3 -- from the linear package\n\nunitCube :: Num a =\u003e Interval V3 a\nunitCube = (-1)...1\n```\n\n\n## Development\n\nDevelopment currently assumes a Mac with `ghc` 8.10 \u0026 `cabal` 3.0. You can install them directly, or use [`ghcup`](https://www.haskell.org/ghcup/). It should be possible to develop on other platforms and compilers, but I probably haven’t tried them myself.\n\n```bash\ncabal build --enable-tests # initial build\ncabal repl # load the library and tests in ghci\n```\n\nOnce the repl has loaded, you can run the tests with `:main`.\n\n```\nλ :main\n```\n\nConfiguration exists for `haskell-ide-engine`, which can be integrated into many editors.\n\n\n## Advantages\n\n`interval-functor` separates the representation of the coordinates of an interval from the representation of the space the coordinates occur in. This makes it particularly suitable for consistent treatment of multi-dimensional intervals; operations like e.g. `union` extend naturally to multi-dimensional spaces.\n\nIt is also thoroughly property tested and documented.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobrix%2Finterval-functor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobrix%2Finterval-functor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobrix%2Finterval-functor/lists"}