{"id":22117705,"url":"https://github.com/prosumma/hs-rsv","last_synced_at":"2025-03-24T06:14:37.261Z","repository":{"id":216861770,"uuid":"742544633","full_name":"Prosumma/hs-rsv","owner":"Prosumma","description":"RSV (Rows of String Values) for Haskell","archived":false,"fork":false,"pushed_at":"2024-08-17T05:26:01.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T11:46:16.484Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Prosumma.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-01-12T18:04:34.000Z","updated_at":"2024-08-17T05:26:04.000Z","dependencies_parsed_at":"2024-03-19T07:13:47.694Z","dependency_job_id":null,"html_url":"https://github.com/Prosumma/hs-rsv","commit_stats":null,"previous_names":["prosumma/hs-rsv"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fhs-rsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fhs-rsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fhs-rsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Prosumma%2Fhs-rsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Prosumma","download_url":"https://codeload.github.com/Prosumma/hs-rsv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245217936,"owners_count":20579300,"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-12-01T13:38:38.069Z","updated_at":"2025-03-24T06:14:37.219Z","avatar_url":"https://github.com/Prosumma.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rows of String Values (RSV)\n\nThis Haskell library implements RSV, a clever format designed as a simpler and more reliable replacement for CSV. You can read more about RSV [here](https://github.com/Stenway/RSV-Specification).\n\n## Haskell Implementation\n\n- Any value which implements `ToValue` may be written to RSV.\n- Any value which implements `FromValue` may be read from RSV.\n- Any type which implements `ToRow` may be written to an RSV row.\n- Any type which implements `FromRow` may be read from an RSV row.\n- Since `ByteString`s are not guaranteed to be UTF-8, they are assumed to be binary data and are encoded in Base-64.\n- The `String` type is also not guaranteed to be UTF-8, but since it's so commonly used, it will be written directly to RSV format and assumed to be UTF-8. Its implementation of `toValue` uses `encodeStringUnsafe`. If you write a `String` that is not UTF-8, you will get an exception when reading it back out. For this reason I do not recommend the use of the `String` type with RSV, since it's unsafe.\n- It's strongly recommended to use the `Text` type to represent strings.\n- Common data types like `Int`, `Integer`, `Double`, `UUID`, etc. can be encoded directly to RSV.\n- The `Bool` data type is encoded by default as the strings `true` and `false`. When reading the `Bool` type, the (case-insensitive) strings `true`, `t`, `yes`, `y`, `1`, `false`, `f`, `no`, `n` and `0` will be recognized. If you want to use some other string values, you have two choices. You can create a `newtype` wrapper around `Bool` and implement `ToValue` and `FromValue` for it. Or you can change the `ParserConfig` and pass it to `encodeWith` and `parseWith`. See the unit tests.\n- See the unit tests for usage, especially of advanced techniques like writing your own record types as RSV rows.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosumma%2Fhs-rsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprosumma%2Fhs-rsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprosumma%2Fhs-rsv/lists"}