{"id":29879433,"url":"https://github.com/typelevel/spotted-leopards","last_synced_at":"2025-07-31T08:46:03.108Z","repository":{"id":47081330,"uuid":"189291951","full_name":"typelevel/spotted-leopards","owner":"typelevel","description":"Proof of concept for a cats-like library built using Dotty features","archived":false,"fork":false,"pushed_at":"2024-06-01T14:41:40.000Z","size":67,"stargazers_count":117,"open_issues_count":3,"forks_count":11,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-07-21T15:44:59.685Z","etag":null,"topics":["functional-programming","scala","typelevel"],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typelevel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-29T20:16:43.000Z","updated_at":"2024-10-25T10:44:58.000Z","dependencies_parsed_at":"2022-08-28T16:03:24.332Z","dependency_job_id":"f0702f3b-85e9-45bb-be3e-3b4b31943e77","html_url":"https://github.com/typelevel/spotted-leopards","commit_stats":{"total_commits":47,"total_committers":7,"mean_commits":6.714285714285714,"dds":"0.25531914893617025","last_synced_commit":"4b6433449bbfced620461c14d1522c4e81c8ec09"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/typelevel/spotted-leopards","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelevel%2Fspotted-leopards","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelevel%2Fspotted-leopards/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelevel%2Fspotted-leopards/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelevel%2Fspotted-leopards/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typelevel","download_url":"https://codeload.github.com/typelevel/spotted-leopards/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelevel%2Fspotted-leopards/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267875273,"owners_count":24158774,"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-07-30T02:00:09.044Z","response_time":70,"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":["functional-programming","scala","typelevel"],"created_at":"2025-07-31T08:46:02.447Z","updated_at":"2025-07-31T08:46:03.085Z","avatar_url":"https://github.com/typelevel.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spotted Leopards\n\nSpotted Leopards = Dotty + Cats\n\nSpotted Leopards is a proof of concept for a cats-like library built using Dotty features, with no concern for source compatibility with the existing Cats library. This project has a few goals:\n - explore how new language features in Dotty could be used to improve the encodings of functional type classes and related data types, perhaps informing future Cats / Dotty roadmap\n - provide feedback on Dotty features from the perspective of cats library authors\n - provide a code base of significant size that can be used for learning and exploring Dotty\n\nIn short, this project is an *experiment only* and will not in any way become a library that should be used for real work. This project is *NOT* a preview of a future Cats version. Rather, it provides a way to explore the design space of the Dotty language features without the constraints of source compatibility and cross-building expected of Cats proper.\n\n## Getting Started\n\nTo get started, launch `sbt console` and run the following:\n\n```scala\nscala\u003e import leopards.{*, given} // Import various types like Monad and OptionT and type class instances\n\nscala\u003e Some(1).map2(Some(2), _ + _)\nval res0: Option[Int] = Some(3)\n\nscala\u003e OptionT.fromOption[List, Int](res0)\nval res1: leopards.OptionT[List, Int] = List(Some(3))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypelevel%2Fspotted-leopards","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypelevel%2Fspotted-leopards","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypelevel%2Fspotted-leopards/lists"}