{"id":18008588,"url":"https://github.com/mgree/ohso","last_synced_at":"2025-07-01T14:07:12.689Z","repository":{"id":142094013,"uuid":"287628243","full_name":"mgree/ohso","owner":"mgree","description":"A port of the Hughes/Peyton Jones pretty printing library.","archived":false,"fork":false,"pushed_at":"2020-08-18T20:43:52.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-09T21:43:52.605Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgree.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-14T21:34:33.000Z","updated_at":"2020-08-18T20:43:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"c51cd00a-0380-43f7-bb89-33e0fa550de4","html_url":"https://github.com/mgree/ohso","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgree%2Fohso","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgree%2Fohso/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgree%2Fohso/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgree%2Fohso/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgree","download_url":"https://codeload.github.com/mgree/ohso/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247174456,"owners_count":20896078,"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-30T01:19:14.823Z","updated_at":"2025-04-04T12:11:08.092Z","avatar_url":"https://github.com/mgree.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ohso\n[![Build Status](https://travis-ci.com/mgree/ohso.svg?branch=main)](https://travis-ci.com/mgree/mgt)\n\nAn implementation of the Hughes/Peyton Jones pretty printing library for Rust.\n\nThe code here follows\n[pretty](https://hackage.haskell.org/package/pretty-1.1.3.6) package in Hackage.\nNB that the original code is under a BSD 3-clause license (see\n`LICENSE.original`) while _this_ package is under GPL 3 (see `LICENSE`).\n\n# TODO\n\n- [ ] Compare with [Haskell benchmarks](https://github.com/haskell/pretty/blob/master/bench/Bench.hs)\n- [ ] Compare with [Rust benchmarks](https://github.com/Marwes/pretty.rs/blob/master/benches/trees.rs)\n- [ ] Port [Haskell tests](https://github.com/haskell/pretty/tree/master/tests)\n- [ ] Think about keeping annotations by reference\n- [ ] Suite of examples (JSON, IMP, STLC)\n- [ ] Profile and optimize `render` (e.g., `output` should be `rope` with good prepend operation; support using `Write` to avoid constructing the string)\n- [ ] Figure out invariant around calls to `.reduce()` (every render involves a clone, per `render.rs` L221!)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgree%2Fohso","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgree%2Fohso","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgree%2Fohso/lists"}