{"id":192794,"name":"hflags","ecosystem":"hackage","description":"The HFlags library supports easy definition of command line flags,\nreimplementing the ideas from Google's gflags\n(http://code.google.com/p/gflags).\n\nCommand line flags can be declared in any file at the toplevel,\nusing defineFlag.  At runtime, the actual values are assigned to\nthe toplevel flags_name constants.  Those can be used purely\nthroughout the program.\n\nAt the beginning of the main function, $initHFlags \"program\ndescription\" has to be called to initialize the flags.  All flags\nwill be initialized that are transitively reachable via imports from\nmain.  This means, that any Haskell package can easily define\ncommand line flags with HFlags.  This feature is demonstrated by\nhttp://github.com/errge/hflags/blob/master/examples/ImportExample.hs\nand http://github.com/errge/hflags/tree/master/examples/package.\n\nA simple example (more in the\nhttp://github.com/errge/hflags/tree/master/examples directory):\n\nAt initHFlags time, the library also tries to gather flags out of\nenvironment variables.  HFLAGS_verbose=True is equivalent to\nspecify --verbose=True.  This environment feature only works with\nlong options and the user has to specify a value even for Bools.\n\nSince version 0.2, you mustn't put the initHFlags in a parentheses with the program description.  Just $initHFlags, it's cleaner.\n\nSee http://github.com/errge/hflags/tree/master/changelog for recent changes.","homepage":"http://github.com/errge/hflags","licenses":"Apache-2.0","normalized_licenses":["Apache-2.0"],"repository_url":"https://github.com/errge/hflags","keywords_array":["apache","console","library","Propose Tags"],"namespace":null,"versions_count":10,"first_release_published_at":"2012-04-27T16:40:18.000Z","latest_release_published_at":"2017-12-05T17:08:46.000Z","latest_release_number":"0.4.3","latest_published_release_number":null,"last_synced_at":"2026-09-25T21:37:15.048Z","created_at":"2022-04-05T21:03:11.539Z","updated_at":"2026-09-25T21:37:17.203Z","registry_url":"https://hackage.haskell.org/package/hflags","install_command":"cabal install hflags","documentation_url":null,"metadata":{},"repo_metadata":{"id":3122071,"uuid":"4149399","full_name":"nilcons/hflags","owner":"nilcons","description":"Command line flag parser for Haskell, conceptually very similar to Google's gflags","archived":false,"fork":false,"pushed_at":"2017-12-05T17:07:03.000Z","size":51,"stargazers_count":13,"open_issues_count":8,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-08-22T05:47:32.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nilcons.png","metadata":{"files":{"readme":"README.md","changelog":"changelog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-26T15:59:02.000Z","updated_at":"2025-09-07T11:51:00.000Z","dependencies_parsed_at":"2022-09-14T19:51:15.756Z","dependency_job_id":null,"html_url":"https://github.com/nilcons/hflags","commit_stats":null,"previous_names":["errge/hflags"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nilcons/hflags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilcons","download_url":"https://codeload.github.com/nilcons/hflags/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":341189360,"owners_count":37690386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-08-22T15:14:58.755Z","status":"online","status_checked_at":"2026-09-25T02:00:20.896Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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"},"owner_record":{"login":"nilcons","name":"nilcons.com","uuid":"6595946","kind":"organization","description":"","email":null,"website":"http://nilcons.com/","location":"Zurich, Switzerland","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/6595946?v=4","repositories_count":51,"last_synced_at":"2024-03-25T21:24:55.044Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/nilcons","funding_links":[],"total_stars":483,"followers":2,"following":0,"created_at":"2022-11-02T16:50:05.774Z","updated_at":"2024-03-25T21:25:17.177Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilcons","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilcons/repositories"},"tags":[{"name":"0.4.3","sha":"d040d5bd9e6ceccc0de4466bd54a5ae19dcc9a58","kind":"tag","published_at":"2017-12-05T17:06:16.000Z","download_url":"https://codeload.github.com/nilcons/hflags/tar.gz/0.4.3","html_url":"https://github.com/nilcons/hflags/releases/tag/0.4.3","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/nilcons/hflags@0.4.3","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/tags/0.4.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/tags/0.4.3/manifests"},{"name":"v0.4.2","sha":"a20516bf3820674b14620682dd5021f563fd9a9b","kind":"tag","published_at":"2016-06-01T14:11:36.000Z","download_url":"https://codeload.github.com/nilcons/hflags/tar.gz/v0.4.2","html_url":"https://github.com/nilcons/hflags/releases/tag/v0.4.2","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/nilcons/hflags@v0.4.2","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/tags/v0.4.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/tags/v0.4.2/manifests"},{"name":"v0.4","sha":"f1e738dbdc8cd9efb8247dcffb016349bceb77d0","kind":"commit","published_at":"2013-10-03T18:14:32.000Z","download_url":"https://codeload.github.com/nilcons/hflags/tar.gz/v0.4","html_url":"https://github.com/nilcons/hflags/releases/tag/v0.4","dependencies_parsed_at":null,"dependency_job_id":null,"purl":"pkg:github/nilcons/hflags@v0.4","tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/tags/v0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/tags/v0.4/manifests"}]},"repo_metadata_updated_at":"2026-09-25T21:37:17.203Z","dependent_packages_count":2,"downloads":11270,"downloads_period":"total","dependent_repos_count":131,"rankings":{"downloads":13.749646792879345,"dependent_repos_count":4.843176038428934,"dependent_packages_count":7.171517377790336,"stargazers_count":20.695111613450127,"forks_count":13.077140435151172,"docker_downloads_count":null,"average":11.907318451539982},"purl":"pkg:hackage/hflags","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/hackage/hflags","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/hackage/hflags","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/hackage/hflags/dependencies","status":null,"funding_links":[],"critical":false,"issue_metadata":{"last_synced_at":"2026-09-25T21:37:17.051Z","issues_count":14,"pull_requests_count":7,"avg_time_to_close_issue":7517384.166666667,"avg_time_to_close_pull_request":929440.5714285715,"issues_closed_count":6,"pull_requests_closed_count":7,"pull_request_authors_count":5,"issue_authors_count":9,"avg_comments_per_issue":2.357142857142857,"avg_comments_per_pull_request":1.4285714285714286,"merged_pull_requests_count":5,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilcons%2Fhflags/issues","maintainers":[{"login":"errge","count":3,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/errge"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/hflags/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/hflags/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/hflags/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/hflags/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/hflags/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/packages/hflags/codemeta","maintainers":[{"uuid":"GergelyRisko","login":"GergelyRisko","name":null,"email":null,"url":null,"packages_count":7,"html_url":"https://hackage.haskell.org/user/GergelyRisko","role":null,"created_at":"2022-11-14T18:15:55.560Z","updated_at":"2022-11-14T18:15:55.560Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/maintainers/GergelyRisko/packages"},{"uuid":"MihalyBarasz","login":"MihalyBarasz","name":null,"email":null,"url":null,"packages_count":5,"html_url":"https://hackage.haskell.org/user/MihalyBarasz","role":null,"created_at":"2022-11-14T18:15:55.591Z","updated_at":"2022-11-14T18:15:55.591Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/hackage.haskell.org/maintainers/MihalyBarasz/packages"}]}