{"id":13616858,"url":"https://github.com/haskell-github/github","last_synced_at":"2025-10-21T14:35:34.023Z","repository":{"id":1763665,"uuid":"2677437","full_name":"haskell-github/github","owner":"haskell-github","description":"The github API for Haskell","archived":false,"fork":false,"pushed_at":"2024-05-23T22:09:14.000Z","size":1391,"stargazers_count":405,"open_issues_count":40,"forks_count":189,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-08-10T11:02:59.335Z","etag":null,"topics":["github-api","haskell","rest-api"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/github","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"edx/edx-platform","license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/haskell-github.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2011-10-30T22:38:34.000Z","updated_at":"2024-08-10T11:03:06.705Z","dependencies_parsed_at":"2023-07-05T20:46:28.958Z","dependency_job_id":"3146a8e7-35b1-49ac-86eb-515f0d6c175d","html_url":"https://github.com/haskell-github/github","commit_stats":{"total_commits":643,"total_committers":105,"mean_commits":6.123809523809523,"dds":0.6531881804043547,"last_synced_commit":"a6a312601cad1843e418ce14d34c5099b54a41d0"},"previous_names":["phadej/github"],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haskell-github%2Fgithub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haskell-github%2Fgithub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haskell-github%2Fgithub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haskell-github%2Fgithub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haskell-github","download_url":"https://codeload.github.com/haskell-github/github/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248815581,"owners_count":21165951,"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":["github-api","haskell","rest-api"],"created_at":"2024-08-01T20:01:34.174Z","updated_at":"2025-10-21T14:35:28.961Z","avatar_url":"https://github.com/haskell-github.png","language":"Haskell","funding_links":[],"categories":["Haskell"],"sub_categories":[],"readme":"GitHub\n------\n\n[![Hackage version](https://img.shields.io/hackage/v/github.svg?label=Hackage\u0026color=informational)](http://hackage.haskell.org/package/github)\n[![github on Stackage Nightly](https://stackage.org/package/github/badge/nightly)](https://stackage.org/nightly/package/github)\n[![Stackage LTS version](https://www.stackage.org/package/github/badge/lts?label=Stackage)](https://www.stackage.org/package/github)\n[![Haskell-CI](https://github.com/haskell-github/github/actions/workflows/haskell-ci.yml/badge.svg)](https://github.com/haskell-github/github/actions/workflows/haskell-ci.yml)\n\nThe GitHub API v3 for Haskell.\n\nSome functions are missing; these are functions where the GitHub API did\nnot work as expected. The full GitHub API is in beta and constantly\nimproving.\n\nInstallation\n============\n\nIn your project's cabal file:\n\n```cabal\nBuild-depends:       github\n```\n\nOr from the command line:\n\n```sh\ncabal v1-install github\n```\n\nExample Usage\n=============\n\nSee the samples in the\n[samples/](https://github.com/haskell-github/github/tree/master/samples) directory.\n\nNote: some samples might be outdated.\n\nDocumentation\n=============\n\nFor details see the reference [documentation on Hackage][hackage].\n\nEach module lines up with the hierarchy of\n[documentation from the GitHub API](https://docs.github.com/en/rest).\n\nRequest functions (ending with `R`) construct a data type which can be executed\nin `IO` by `executeRequest` functions. They are all listed in the root `GitHub`\nmodule.\n\nIO functions produce an `IO (Either Error a)`, where `a` is the actual thing\nyou want. You must call the function using IO goodness, then dispatch on the\npossible error message. Here's an example from the samples:\n\nMany function have samples under\n[`samples/`](https://github.com/haskell-github/github/tree/master/samples) directory.\n\n```hs\n{-# LANGUAGE NoImplicitPrelude #-}\n{-# LANGUAGE OverloadedStrings #-}\n\nimport Prelude.Compat\n\nimport Data.Text         (Text, pack)\nimport Data.Text.IO as T (putStrLn)\nimport Data.Monoid       ((\u003c\u003e))\n\nimport GitHub (github')\nimport qualified GitHub\n\nmain :: IO ()\nmain = do\n    possibleUsers \u003c- github' GitHub.usersFollowingR \"phadej\"\n    T.putStrLn $ either ((\"Error: \" \u003c\u003e) . pack . show)\n                        (foldMap ((\u003c\u003e \"\\n\") . formatUser))\n                        possibleUsers\n\nformatUser :: GitHub.SimpleUser -\u003e Text\nformatUser = GitHub.untagName . GitHub.simpleUserLogin\n```\n\nContributions\n=============\n\nPlease see\n[CONTRIBUTING.md](https://github.com/haskell-github/github/blob/master/CONTRIBUTING.md)\nfor details on how you can help.\n\nCopyright\n=========\n\nCopyright 2011-2012 Mike Burns.\nCopyright 2013-2015 John Wiegley.\nCopyright 2016-2019 Oleg Grenrus.\n\nAvailable under the BSD 3-clause license.\n\n[hackage]: https://hackage.haskell.org/package/github \"Hackage\"\n\nAlternative\n===========\n\nLibrary [`github-rest`](https://hackage.haskell.org/package/github-rest)\nalso provides an interface to the GitHub API.\nIt compares itself to `github` here:\nhttps://github.com/LeapYear/github-rest#comparison-to-other-libraries\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaskell-github%2Fgithub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaskell-github%2Fgithub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaskell-github%2Fgithub/lists"}