{"id":16579973,"url":"https://github.com/tfausak/lackey","last_synced_at":"2025-05-08T19:49:57.676Z","repository":{"id":2258999,"uuid":"41402934","full_name":"tfausak/lackey","owner":"tfausak","description":":gem: A Haskell library for generating Ruby consumers of Servant APIs.","archived":false,"fork":false,"pushed_at":"2025-02-02T01:59:48.000Z","size":168,"stargazers_count":23,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-12T11:43:37.158Z","etag":null,"topics":["haskell","ruby","servant"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/lackey","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/tfausak.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2015-08-26T03:46:14.000Z","updated_at":"2025-02-02T01:59:51.000Z","dependencies_parsed_at":"2022-09-17T11:10:35.520Z","dependency_job_id":"ee6770ea-1711-4a5b-b306-a6e5149a9dd6","html_url":"https://github.com/tfausak/lackey","commit_stats":{"total_commits":194,"total_committers":1,"mean_commits":194.0,"dds":0.0,"last_synced_commit":"4053ccbb609c8b378b4cd5d90fa46260b7bbce85"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Flackey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Flackey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Flackey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfausak%2Flackey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tfausak","download_url":"https://codeload.github.com/tfausak/lackey/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253141132,"owners_count":21860534,"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":["haskell","ruby","servant"],"created_at":"2024-10-11T22:19:44.560Z","updated_at":"2025-05-08T19:49:57.613Z","avatar_url":"https://github.com/tfausak.png","language":"Haskell","readme":"# [Lackey][]\n\n[![Workflow](https://github.com/tfausak/lackey/actions/workflows/ci.yml/badge.svg)](https://github.com/tfausak/lackey/actions/workflows/ci.yml)\n[![Hackage](https://badgen.net/hackage/v/lackey)](https://hackage.haskell.org/package/lackey)\n\nLackey is a Haskell library for generating Ruby consumers of [Servant][] APIs.\n\nUse `Lackey.rubyForAPI` to generate a string of Ruby source code for consuming\na Servant API. For example:\n\n``` hs\n{-# LANGUAGE DataKinds #-}\n{-# LANGUAGE TypeOperators #-}\n\nimport qualified Data.Proxy as Proxy\nimport qualified Data.Text as Text\nimport qualified Data.Text.IO as Text\nimport qualified Lackey\nimport Servant.API\n\ntype API = \"words\" :\u003e Get '[JSON] [String]\n\napi :: Proxy.Proxy API\napi = Proxy.Proxy\n\nruby :: Text.Text\nruby = Lackey.rubyForAPI api\n\nmain :: IO ()\nmain = Text.putStrLn ruby\n-- def get_words(excon)excon.request(:method=\u003e:get,:path=\u003e\"/words\",:headers=\u003e{},:body=\u003enil)end\n```\n\nThe generated functions require [Excon][].\n\n[Lackey]: https://github.com/tfausak/lackey\n[Servant]: https://haskell-servant.readthedocs.org/en/stable/\n[Excon]: https://rubygems.org/gems/excon\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfausak%2Flackey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftfausak%2Flackey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfausak%2Flackey/lists"}