{"id":19939075,"url":"https://github.com/saityi/felis","last_synced_at":"2026-02-06T06:02:37.996Z","repository":{"id":166980364,"uuid":"217424175","full_name":"Saityi/felis","owner":"Saityi","description":"(⚠️ Work in Progress ⚠️) Category theoretic abstractions and implementations","archived":false,"fork":false,"pushed_at":"2021-12-16T22:30:32.000Z","size":61,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-24T16:21:01.226Z","etag":null,"topics":["category-theory","functional-programming","standard-ml"],"latest_commit_sha":null,"homepage":"","language":"Standard ML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Saityi.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-10-25T01:15:20.000Z","updated_at":"2020-06-11T01:26:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"61b077b2-7e01-41cd-9959-fad0a18ba6ff","html_url":"https://github.com/Saityi/felis","commit_stats":null,"previous_names":["saityi/felis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Saityi/felis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saityi%2Ffelis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saityi%2Ffelis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saityi%2Ffelis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saityi%2Ffelis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saityi","download_url":"https://codeload.github.com/Saityi/felis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saityi%2Ffelis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29153143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["category-theory","functional-programming","standard-ml"],"created_at":"2024-11-12T23:42:51.404Z","updated_at":"2026-02-06T06:02:37.980Z","avatar_url":"https://github.com/Saityi.png","language":"Standard ML","readme":"# Felis\n\nA collection of common functional abstractions, including:\n- Functor\n- Applicatives\n- Monads\n- Foldable\n\nAnd instances on them, defined where possible in Basis signature terms.\n\nInclude a small module of utility functions, tentatively named `Base`. Includes the types `id` and `either`, as well as utility functions like `id`, `const`, `uncurry`, `curry`, and `flip`, among others.\n\n```sml\nλ sml\nStandard ML of New Jersey\n- CM.make \"felis.cm\";\n(* ListInstances is defined using the LIST signature from the standard library *)\n(* Here, we instantiate it using SML/NJ's List structure *)\n- structure L = ListInstances(List); \nstructure L :\n  sig\n    structure Monoid : \u003csig\u003e\n    structure Monad : \u003csig\u003e\n    structure Alternative : \u003csig\u003e\n    structure Foldable : \u003csig\u003e\n    functor Traversable : \u003cfctsig\u003e\n  end\n\n- structure LT = L.Traversable(L.Monad);\nstructure LT : TRAVERSABLE\n\n- structure LF = FunctorMethods(L.Monad);\nstructure LF :\n  sig\n    val \u003c$\u003e : ('a -\u003e 'b) * 'a F.m -\u003e 'b F.m\n    val $\u003e : 'a F.m * 'b -\u003e 'b F.m\n    val \u003c$ : 'a * 'b F.m -\u003e 'a F.m\n    val \u003c\u0026\u003e : 'a F.m * ('a -\u003e 'b) -\u003e 'b F.m\n    val void : 'a F.m -\u003e unit F.m\n  end\n\n- open Base L LF;\n- infix 6 \u003c$\u003e;\n- (fn x =\u003e x + 1) \u003c$\u003e [1, 2, 3];\nval it = [2,3,4] : int Monad.m\n\n- void [1, 2, 3, 4, 5];\nval it = [(),(),(),(),()] : unit Monad.m\n\n- LT.traverse id [[0, 1], [1, 0]];\nval it = [[0,1],[0,0],[1,1],[1,0]] : int Foldable.m Monad.m\n```\n\nNOTE: Due to the lack of ad-hoc polymorphism, I fear this isn't quite as useful as it could be, but I find after a little bit of boilerplate and `open`ing a couple modules, it's more useful than I expected. Pull requests welcome!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaityi%2Ffelis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaityi%2Ffelis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaityi%2Ffelis/lists"}