{"id":19658450,"url":"https://github.com/cdaringe/ppx_effects","last_synced_at":"2025-06-29T09:04:00.484Z","repository":{"id":40393071,"uuid":"415693023","full_name":"cdaringe/ppx_effects","owner":"cdaringe","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T02:33:25.000Z","size":29,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T09:01:53.712Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdaringe.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-10-10T20:27:23.000Z","updated_at":"2021-10-15T02:37:52.000Z","dependencies_parsed_at":"2024-11-11T15:39:34.031Z","dependency_job_id":"147e2e39-50d1-424c-b348-c783c23b21ab","html_url":"https://github.com/cdaringe/ppx_effects","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cdaringe/ppx_effects","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fppx_effects","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fppx_effects/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fppx_effects/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fppx_effects/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdaringe","download_url":"https://codeload.github.com/cdaringe/ppx_effects/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdaringe%2Fppx_effects/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262566829,"owners_count":23329681,"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-11-11T15:37:37.492Z","updated_at":"2025-06-29T09:04:00.464Z","avatar_url":"https://github.com/cdaringe.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ppx_effects\n\nAllows one to write effects via concise syntax via ppx:\n\n```ml\ntry%effect comp on_complete with\n  | A (input_a, k) -\u003e handle_a input_a k\n  | B (input_b, k) -\u003e handle_b input_b k\n  | C (input_c, k) -\u003e handle_c input_c k\n```\n\nSee a full example in [test/test.ml](./test/test.ml).\n\n## install\n\n🚨 not yet published to opam\n\n`opam install ppx_effects`\n\n## usage\n\n- add `ppx_effects` to your preprocessors, a la\n\n```dune\n(executable\n (name my_bin)\n ;...snip...;\n (preprocess\n  (pps ppx_effects)))\n```\n\n- use `[%with_effects \u003carray-syntax\u003e]` where each entry is of form `Effect_constructor handler_name`\n\n## warning\n\nthis is ppx is WIP. use with caution\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fppx_effects","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdaringe%2Fppx_effects","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdaringe%2Fppx_effects/lists"}