{"id":16315588,"url":"https://github.com/andreasabel/ini","last_synced_at":"2025-03-22T21:31:25.806Z","repository":{"id":49686959,"uuid":"482184444","full_name":"andreasabel/ini","owner":"andreasabel","description":"Quick and easy INI configuration files for Haskell","archived":false,"fork":false,"pushed_at":"2024-10-29T14:18:14.000Z","size":48,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T19:30:54.036Z","etag":null,"topics":["configuration","haskell","ini-parser"],"latest_commit_sha":null,"homepage":"https://hackage.haskell.org/package/ini","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"chrisdone/ini","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreasabel.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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":"2022-04-16T07:15:57.000Z","updated_at":"2024-10-29T14:18:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"4fcb0260-c7c8-495f-943a-d01df29556d1","html_url":"https://github.com/andreasabel/ini","commit_stats":{"total_commits":64,"total_committers":20,"mean_commits":3.2,"dds":0.546875,"last_synced_commit":"9e0302ee8adec64ca1e1d58c3b17a4c9de50bc7e"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasabel%2Fini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasabel%2Fini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasabel%2Fini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreasabel%2Fini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreasabel","download_url":"https://codeload.github.com/andreasabel/ini/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245022466,"owners_count":20548544,"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":["configuration","haskell","ini-parser"],"created_at":"2024-10-10T21:57:55.564Z","updated_at":"2025-03-22T21:31:25.554Z","avatar_url":"https://github.com/andreasabel.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Hackage](https://img.shields.io/hackage/v/ini.svg?color=informational)](https://hackage.haskell.org/package/ini)\n[![ini on Stackage Nightly](https://stackage.org/package/ini/badge/nightly)](https://stackage.org/nightly/package/ini)\n[![Stackage LTS version](https://www.stackage.org/package/ini/badge/lts?label=Stackage)](https://www.stackage.org/package/ini)\n[![Haskell CI](https://github.com/andreasabel/ini/actions/workflows/haskell.yml/badge.svg)](https://github.com/andreasabel/ini/actions/workflows/haskell.yml)\n\nini\n===\n\nQuick and easy configuration files in the INI format for Haskell.\n\nFormat rules and recommendations:\n\n* `foo: bar` or `foo=bar` are allowed.\n* The `:` syntax is space-sensitive.\n* Keys are case-sensitive.\n* Lower-case is recommended.\n* Values can be empty.\n* Keys cannot contain `:`, `=`, `[`, or `]`.\n* Comments must start at the beginning of the line with `;` or `#`.\n\nAn example configuration file:\n\n``` ini\n# Some comment.\n[SERVER]\nport=6667\nhostname=localhost\n[AUTH]\nuser=hello\npass=world\n# Salt can be an empty string.\nsalt=\n```\n\nParsing example:\n\n``` haskell\n\u003e parseIni \"[SERVER]\\nport: 6667\\nhostname: localhost\"\nRight (Ini {unIni = fromList [(\"SERVER\",fromList [(\"hostname\",\"localhost\")\n                                                 ,(\"port\",\"6667\")])]})\n```\n\nExtracting values:\n\n``` haskell\n\u003e parseIni \"[SERVER]\\nport: 6667\\nhostname: localhost\" \u003e\u003e=\n  lookupValue \"SERVER\" \"hostname\"\nRight \"localhost\"\n```\n\nParsing:\n\n``` haskell\n\u003e parseIni \"[SERVER]\\nport: 6667\\nhostname: localhost\" \u003e\u003e=\n  readValue \"SERVER\" \"port\" decimal\nRight 6667\n```\n\nImport `Data.Text.Read` to use `decimal`.\n\n## Related packages\n\n[`ini-qq`](https://hackage.haskell.org/package/ini-qq) provides a quasiquoter for INI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasabel%2Fini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreasabel%2Fini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreasabel%2Fini/lists"}