{"id":16027854,"url":"https://github.com/wisn/format-preserving-yaml","last_synced_at":"2026-06-19T08:32:12.046Z","repository":{"id":138973810,"uuid":"134316179","full_name":"wisn/format-preserving-yaml","owner":"wisn","description":"A Format-Preserving YAML Parser","archived":false,"fork":false,"pushed_at":"2018-07-13T09:27:11.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-11-10T16:26:18.917Z","etag":null,"topics":["format-preserving","gsoc-2018","haskell","parser","yaml-parser"],"latest_commit_sha":null,"homepage":null,"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/wisn.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":"2018-05-21T19:34:40.000Z","updated_at":"2020-01-20T02:36:30.000Z","dependencies_parsed_at":"2023-07-05T12:30:52.791Z","dependency_job_id":null,"html_url":"https://github.com/wisn/format-preserving-yaml","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"6ab209d04cdd242d7f12af36f6f0cfa4f69f9d4a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wisn/format-preserving-yaml","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisn%2Fformat-preserving-yaml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisn%2Fformat-preserving-yaml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisn%2Fformat-preserving-yaml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisn%2Fformat-preserving-yaml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wisn","download_url":"https://codeload.github.com/wisn/format-preserving-yaml/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisn%2Fformat-preserving-yaml/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34523982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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"}},"keywords":["format-preserving","gsoc-2018","haskell","parser","yaml-parser"],"created_at":"2024-10-08T20:23:54.770Z","updated_at":"2026-06-19T08:32:12.024Z","avatar_url":"https://github.com/wisn.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Format.Preserving.YAML\n\nA format-preserving YAML parser.\n\n## Progress Note\n\nWe are following the [YAML 1.2 Spec](http://yaml.org/spec/1.2/spec.html) in\ngeneral and use [Core Schema](http://yaml.org/spec/1.2/spec.html#id2804923) as\nthe reference for YAML native data structure in Haskell.\n\n### Implementation\n\n#### YAML Native Data Structure in Haskell\n\nYAML supports multi-document content in one file. Each document could contains\nDirective and Body (YAML Node).\n\n```haskell\ndata YAML = YAML Documents\n\ntype Documents = [Document]\n\ndata Document = Document Directives Node\n```\n\n#### Finished Implementation\n\n##### Directive\n\n- Version Directive\n- Tag Directive\n- None-reserved YAML Directive\n\n##### Scalar\n\n- Comment\n- Null\n- Bool\n- Int (base 16, base 10, base 8)\n- Float including Inf and NaN\n- Node Alias\n\n##### Sequence\n\n- Empty Sequence\n- Single element Sequence\n- Many elements Sequence\n\n**TODO**: Investigate more tricky cases and add more tests.\n\n#### Ongoing Implementation\n\n##### Scalar\n\n- Quoted Str (single, double)\n- Node Anchor\n\n##### Sequence\n\n- Nested Sequence\n\n**NOTE**: Fixing bugs. Implements parser for escaped character.\n\n##### Miscellaneous\n\nConstructing and researching about algorithm \u0026 data structure for block-scoped\nindentation in YAML. This is the hardest part.\n\n### Implementation Validation\n\nI'm reading [Learn YAML in Y Minutes](https://learnxinyminutes.com/docs/yaml/)\nto think about the implementation and looked at the YAML 1.2 Spec production\ngrammar for the best outcome. Making sure that the YAML is valid using online\n[YAML Linter](http://www.yamllint.com/) and online\n[YAML Parser](http://yaml-online-parser.appspot.com/). However, there are\nseveral limitation in those YAML Linter and YAML Parser implementation. Hence,\nwe stick with the YAML 1.2 Spec to the end.\n\n### Usage Example\n\nExample will be added later. There are tests instead in `test/` directory.\n\n## License\n\nLicensed under [The BSD3 License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisn%2Fformat-preserving-yaml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwisn%2Fformat-preserving-yaml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisn%2Fformat-preserving-yaml/lists"}