{"id":27745904,"url":"https://github.com/MercuryTechnologies/hs-temporal-cookbook","last_synced_at":"2025-04-28T20:01:57.831Z","repository":{"id":280191529,"uuid":"938305136","full_name":"MercuryTechnologies/hs-temporal-cookbook","owner":"MercuryTechnologies","description":"Cookbook for working with the (Unofficial) Temporal Haskell SDK ","archived":false,"fork":false,"pushed_at":"2025-04-03T19:26:38.000Z","size":276,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-24T00:58:25.094Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MercuryTechnologies.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":"2025-02-24T18:39:00.000Z","updated_at":"2025-04-03T19:26:42.000Z","dependencies_parsed_at":"2025-03-01T21:28:23.650Z","dependency_job_id":"0a48a671-7afb-4173-a0d4-d31a0348a560","html_url":"https://github.com/MercuryTechnologies/hs-temporal-cookbook","commit_stats":null,"previous_names":["mercurytechnologies/hs-temporal-cookbook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MercuryTechnologies%2Fhs-temporal-cookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MercuryTechnologies%2Fhs-temporal-cookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MercuryTechnologies%2Fhs-temporal-cookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MercuryTechnologies%2Fhs-temporal-cookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MercuryTechnologies","download_url":"https://codeload.github.com/MercuryTechnologies/hs-temporal-cookbook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251380914,"owners_count":21580338,"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":"2025-04-28T20:00:49.874Z","updated_at":"2025-04-28T20:01:57.764Z","avatar_url":"https://github.com/MercuryTechnologies.png","language":"Haskell","funding_links":[],"categories":["Haskell"],"sub_categories":["Blog posts"],"readme":"# (Unofficial) Haskell Temporal SDK Cookbook\n\nThis is a set of examples for the [(unofficial) Haskell SDK](https://github.com/MercuryTechnologies/hs-temporal-sdk/).\n\n## Examples\n\nMost examples assume a Nix development shell and running Temporal development\nserver; see [the usage section](#usage) below for details.\n\n- [hello](./hello) - basic examples\n  - [activity](./hello/Activity.hs) - define an activity and execute it from a workflow\n  - [activity_with_boilerplate](./hello/ActivityWithBoilerplate.hs) - same as above, without using Template Haskell convenience utilities\n  - [child_workflow](./hello/ChildWorkflow.hs) - execute a workflow that spawns a child workflow\n  - [cron](./hello/Cron.hs) - execute a workflow once per minute\n\n## Usage\n\n### Prerequisites\n\nThis cookbook depends on [Nix]; if you don't already have Nix installed, please\n[follow these instructions](https://lix.systems/install/#on-any-other-linuxmacos-system)\nto do so.\n\n[Nix]: https://www.lix.systems\n\n### Running the Examples\n\n\u003e [!WARNING]\n\u003e `--accept-flake-config` should **never** be passed to a `nix` command that\n\u003e executes untrusted code; a malicious actor could use it to\n\u003e [execute commands as root](https://github.com/NixOS/nix/issues/9649)!\n\u003e\n\u003e Always validate the `nixConfig` in a project's `flake.nix` beforehand; in\n\u003e this case, we're using it to provide cached [Garnix CI](https://garnix.io/)\n\u003e artifacts.\n\nUnless otherwise specified, all examples require a running Temporal development\nserver; drop into a Nix development shell and spawn one:\n\n```bash\n$ nix develop --accept-flake-config\n$ temporal server start-dev\n```\n\nThe development server web UI should now be available at `localhost:8233`.\n\nSeparately, drop into a Nix development shell from which the examples may be\ncompiled and executed; to run the basic activity example:\n\n```bash\n$ nix develop --accept-flake-config\n$ cabal run hello:activity_with_boilerplate\n```\n\nUpon completion, navigate to the web UI and observe that a workflow of type\n`greeting` has completed:\n\n\u003cimg title=\"screenshot\" alt=\"Temporal web UI showing workflow execution\" src=\"./assets/greeting_workflow_example.png\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMercuryTechnologies%2Fhs-temporal-cookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMercuryTechnologies%2Fhs-temporal-cookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMercuryTechnologies%2Fhs-temporal-cookbook/lists"}