{"id":24265784,"url":"https://github.com/davidboers/elmeither","last_synced_at":"2025-03-05T00:47:30.004Z","repository":{"id":52073495,"uuid":"365035226","full_name":"davidboers/ElmEither","owner":"davidboers","description":"Implements the Either declaration in Elm.","archived":false,"fork":false,"pushed_at":"2021-05-07T19:06:27.000Z","size":9,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T00:47:27.086Z","etag":null,"topics":["either","elm","functional-programming","package"],"latest_commit_sha":null,"homepage":"","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidboers.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}},"created_at":"2021-05-06T20:55:29.000Z","updated_at":"2021-05-07T18:36:18.000Z","dependencies_parsed_at":"2022-09-22T22:01:46.843Z","dependency_job_id":null,"html_url":"https://github.com/davidboers/ElmEither","commit_stats":null,"previous_names":["kingwither/elmeither"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidboers%2FElmEither","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidboers%2FElmEither/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidboers%2FElmEither/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidboers%2FElmEither/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidboers","download_url":"https://codeload.github.com/davidboers/ElmEither/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241945473,"owners_count":20046865,"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":["either","elm","functional-programming","package"],"created_at":"2025-01-15T10:19:48.386Z","updated_at":"2025-03-05T00:47:29.980Z","avatar_url":"https://github.com/davidboers.png","language":"Elm","readme":"# Either Elm\n\nThe first time I tried Functional Programming, I thought \"What the hell is this? Why would anybody program this way?\" Then, I tried it out a little more. Then I realized how fun it is. Particularly the genius that comes with having to be resourceful. In no instance is that clearer than Haskell's `Maybe` and `Either` declarations.\n\n```Haskell\n\n-- Basically a nullable value. It could exist (as any type) or it could be Nothing. \n-- Akin to Java's '@nullable' annotation\n\ntype Maybe a\n    = Just a\n    | Nothing\n\n-- Could be of type a or type b.\n\ntype Either a b\n    = Left a\n    | Right b\n```\n\nAlthough `Maybe` is implemented in Elm, `Either` is not; until now. This module contains a declaration of Haskell's `Either` type, verbatim from the source code of the GHC library. It also contains a couple of other functions related to the declaration.\n\nJust do\n\n```\nelm install kingwither/elmeither\n```\n\nand the package will be installed!\n\n```Elm\nimport Either exposing (Either(..))\n```\n\nYou're all set! `Either` is now `Either Haskell Elm`!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidboers%2Felmeither","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidboers%2Felmeither","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidboers%2Felmeither/lists"}