{"id":15557118,"url":"https://github.com/414owen/multi-except","last_synced_at":"2025-08-30T23:37:34.128Z","repository":{"id":50243133,"uuid":"366440613","full_name":"414owen/multi-except","owner":"414owen","description":"Haskell Applicative Exception type that supports multiple exceptions reported by one computation","archived":false,"fork":false,"pushed_at":"2024-04-16T15:44:03.000Z","size":125,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-22T13:06:22.786Z","etag":null,"topics":["applicative","haskell"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/414owen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2021-05-11T16:02:07.000Z","updated_at":"2021-11-11T11:02:23.000Z","dependencies_parsed_at":"2023-12-30T16:40:05.329Z","dependency_job_id":"bc1a5e18-f7fc-42b3-81a2-b22f4ad101f6","html_url":"https://github.com/414owen/multi-except","commit_stats":{"total_commits":31,"total_committers":3,"mean_commits":"10.333333333333334","dds":"0.16129032258064513","last_synced_commit":"6b693cf9a43304ad444744f5daae550096cfce4e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/414owen/multi-except","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/414owen%2Fmulti-except","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/414owen%2Fmulti-except/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/414owen%2Fmulti-except/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/414owen%2Fmulti-except/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/414owen","download_url":"https://codeload.github.com/414owen/multi-except/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/414owen%2Fmulti-except/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272921484,"owners_count":25015761,"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-30T02:00:09.474Z","response_time":77,"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":["applicative","haskell"],"created_at":"2024-10-02T15:16:04.367Z","updated_at":"2025-08-30T23:37:34.067Z","avatar_url":"https://github.com/414owen.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# multi-except\n\n[![Hackage version](https://img.shields.io/hackage/v/multi-except?color=purple)](https://hackage.haskell.org/package/multi-except)\n[![CI Status](https://img.shields.io/github/actions/workflow/status/414owen/multi-except/haskell-ci.yml)](https://github.com/414owen/multi-except/actions)\n[![GitHub License](https://img.shields.io/github/license/414owen/multi-except)](https://github.com/414owen/multi-except/blob/master/LICENSE)\n\nmulti-except - succeed, or return one or more errors\n\n## Adding the dependency\n\n```\n-- in your cabal file\n  -- Add the main package (only depends on base!)\n  , multi-except\n  -- For the Alt instance (depends on semigroupoids)\n  , multi-except:semigroupoid-instances\n```\n\n## Usage\n\n\n```haskell\n{-# LANGUAGE ApplicativeDo #-}\n\nimport Control.Applicative.MultiExcept\n\nerrors :: MultiExcept String (Int, Int, Int)\nerrors = do\n  a \u003c- throwError \"no monad instance\"\n  b \u003c- pure 12\n  c \u003c- throwError \"i am scared\"\n  pure (a, b, c)\n\n-- errors: Errors [\"no monad instance\", \"i am scared\"]\n```\n\nThe use of `ApplicativeDo` is significant and necessary for using\n`MultiExcept` with do notation.\n\n`MultiExcept` is not a `Monad`, only an `Applicative`, so a few constraints\napply, such as not being able to determine the structure of the rest of the\ncomputation based on a previously do-bound value. If the previous sentence was\nconfusing, then you might want to consider using a writer monad instead.\n\nTo compose with other applicative effects, you can use\n[`Data.Functor.Compose`](https://hackage.haskell.org/package/base-4.19.0.0/docs/Data-Functor-Compose.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F414owen%2Fmulti-except","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F414owen%2Fmulti-except","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F414owen%2Fmulti-except/lists"}