{"id":28824098,"url":"https://github.com/hapytex/colorhash","last_synced_at":"2026-03-15T09:23:15.362Z","repository":{"id":296718041,"uuid":"994220496","full_name":"hapytex/colorhash","owner":"hapytex","description":"Determine a color based on the hash of an object.","archived":false,"fork":false,"pushed_at":"2025-06-01T17:47:32.000Z","size":12645,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-19T01:03:24.209Z","etag":null,"topics":["color","colorhash","hash","hashable","haskell","rgb"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/colorhash","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/hapytex.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":"https://www.buymeacoffee.com/hapytex"}},"created_at":"2025-06-01T13:35:11.000Z","updated_at":"2025-06-01T17:43:12.000Z","dependencies_parsed_at":"2025-06-08T00:16:25.717Z","dependency_job_id":null,"html_url":"https://github.com/hapytex/colorhash","commit_stats":null,"previous_names":["hapytex/colorhash"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hapytex/colorhash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hapytex%2Fcolorhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hapytex%2Fcolorhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hapytex%2Fcolorhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hapytex%2Fcolorhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hapytex","download_url":"https://codeload.github.com/hapytex/colorhash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hapytex%2Fcolorhash/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268322396,"owners_count":24231819,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["color","colorhash","hash","hashable","haskell","rgb"],"created_at":"2025-06-19T01:03:27.741Z","updated_at":"2026-03-15T09:23:15.321Z","avatar_url":"https://github.com/hapytex.png","language":"Haskell","funding_links":["https://www.buymeacoffee.com/hapytex"],"categories":[],"sub_categories":[],"readme":"# colorhash\n\n[![Build Status of the package by GitHub actions](https://github.com/hapytex/colorhash/actions/workflows/build-ci.yml/badge.svg)](https://github.com/hapytex/colorhash/actions/workflows/build-ci.yml)\n[![Hackage version badge](https://img.shields.io/hackage/v/colorhash.svg)](https://hackage.haskell.org/package/colorhash)\n\n\nHashes are an easy way to distinguish between two objects since it is not impossible that two random objects have the same hash, but it is very unlikely. But for humans, a hash is often still not very convenient. Colors are an easier way to distinguish. For example one can make a list of items, and give each of the items a different color based on the hash.\n\nThis module provides a function `rgbHash :: (Hashable a, Floating b, Ord b) =\u003e a -\u003e Colour b` that can convert any `Hashable` object to a `Colour`.\n\n## `colorhash` is *safe* Haskell\n\nThe only module, `Data.Hashable.Color` is compiled with the `Safe` pragma.\n\n## Contribute\n\nYou can contribute by making a pull request on the [*GitHub repository*](https://github.com/hapytex/colorhash).\n\nYou can contact the package maintainer by sending a mail to [`yourfriends@hapytex.eu`](mailto:yourfriends@hapytex.eu).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhapytex%2Fcolorhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhapytex%2Fcolorhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhapytex%2Fcolorhash/lists"}