{"id":15616638,"url":"https://github.com/passy/optparse-text","last_synced_at":"2025-04-28T13:08:54.172Z","repository":{"id":56874262,"uuid":"61958086","full_name":"passy/optparse-text","owner":"passy","description":"Helpers for optparse-applicative to deal with Data.Text","archived":false,"fork":false,"pushed_at":"2018-07-05T18:13:50.000Z","size":15,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T16:10:19.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://stackage.org/nightly/package/optparse-text","language":"Haskell","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/passy.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":"2016-06-25T19:18:54.000Z","updated_at":"2023-10-17T20:28:55.000Z","dependencies_parsed_at":"2022-08-20T22:30:35.926Z","dependency_job_id":null,"html_url":"https://github.com/passy/optparse-text","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Foptparse-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Foptparse-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Foptparse-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passy%2Foptparse-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passy","download_url":"https://codeload.github.com/passy/optparse-text/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250844922,"owners_count":21496667,"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":[],"created_at":"2024-10-03T07:20:20.559Z","updated_at":"2025-04-28T13:08:53.621Z","avatar_url":"https://github.com/passy.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# optparse-text\n[![Build Status](https://travis-ci.org/passy/optparse-text.svg?branch=master)](https://travis-ci.org/passy/optparse-text)\n[![Hackage](http://img.shields.io/hackage/v/optparse-text.svg)](https://hackage.haskell.org/package/optparse-text)\n[![Stackage LTS](http://stackage.org/package/optparse-text/badge/lts)](http://stackage.org/lts/package/optparse-text)\n[![Stackage Nightly](http://stackage.org/package/optparse-text/badge/nightly)](http://stackage.org/nightly/package/optparse-text)\n\n\n\u003e Helpers for\n\u003e [`optparse-applicative`](https://hackage.haskell.org/package/optparse-applicative)\n\u003e to deal with [`Data.Text`](https://hackage.haskell.org/package/text).\n\n## Example\n\n```haskell\nimport qualified Data.Text                 as T\nimport qualified Options.Applicative       as Opt\nimport qualified Options.Applicative.Text  as OptT\n\ndata Options = Options { text    :: T.Text\n                       , textArg :: T.Text\n                       , textOpt :: T.Text }\n  deriving (Eq, Show)\n\noptParser :: Opt.Parser Options\noptParser = Options \u003c$\u003e Opt.argument OptT.text ( Opt.metavar \"TEXT\" )\n                    \u003c*\u003e OptT.textArgument ( Opt.metavar \"TEXT2\" )\n                    \u003c*\u003e OptT.textOption ( Opt.long \"textopt\" )\n```\n\n## Alternatives\n\nYou may want to consider using\n[optparse-generic](https://github.com/Gabriel439/Haskell-Optparse-Generic-Library)\nwhich has built-in support for Text and provides a very convient generic\ninterface to optparse avoiding a lot of boilerplate.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassy%2Foptparse-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpassy%2Foptparse-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassy%2Foptparse-text/lists"}