gitlab-haskell: A Haskell library for the GitLab web API
This Haskell library queries and updates the database of a GitLab instance using the GitLab web API: https://docs.gitlab.com/ee/api/
Run all GitLab actions with runGitLab
:
runGitLab :: (MonadUnliftIO m, MonadIO m) => GitLabServerConfig -- ^ the GitLab server details -> GitLab m a -- ^ the GitLab action -> m a
For example:
myTodos <- runGitLab (defaultGitLabServer { url = "https://gitlab.example.com" , token="my_token"} ) (searchUser "joe" >>= userProjects . fromJust)
Which uses the todos
function:
searchUser :: Text -> GitLab m (Maybe User) userProjects :: User -> GitLab m (Maybe [Project])
Unsurprisingly, this library is maintained on GitLab: https://gitlab.com/robstewart57/gitlab-haskell
[Skip to Readme]
Modules
[Index] [Quick Jump]
Downloads
- gitlab-haskell-0.1.6.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.3.0, 0.3.0.1, 0.3.0.2, 0.3.1, 0.3.1.1, 0.3.2.0, 1.0.0.0, 1.0.0.1, 1.0.0.3, 1.0.0.4, 1.0.0.5, 1.0.1.0, 1.0.2.0, 1.0.2.1, 1.0.2.2, 1.1.0.0 |
---|---|
Dependencies | aeson (>=1.4.4.0), base (>=4.7 && <5), bytestring, connection, http-conduit, http-types, text, time, transformers, unliftio, unliftio-core [details] |
License | BSD-3-Clause |
Copyright | 2019 Rob Stewart, Heriot-Watt University |
Author | Rob Stewart |
Maintainer | robstewart57@gmail.com |
Category | Git |
Home page | https://gitlab.com/robstewart57/gitlab-haskell |
Bug tracker | https://gitlab.com/robstewart57/gitlab-haskell/issues |
Source repo | head: git clone https://gitlab.com/robstewart57/gitlab-haskell |
Uploaded | by RobStewart at 2020-03-02T22:30:57Z |
Distributions | LTSHaskell:1.0.2.2, Stackage:1.1.0.0 |
Downloads | 7893 total (5 in the last 30 days) |
Rating | 2.5 (votes: 3) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2020-03-03 [all 1 reports] |