{"id":26131295,"url":"https://github.com/freckle/debug-print","last_synced_at":"2025-06-16T06:40:36.507Z","repository":{"id":279485680,"uuid":"938949236","full_name":"freckle/debug-print","owner":"freckle","description":"A structured alternative to Show for printing values for testing and debugging purposes.","archived":false,"fork":false,"pushed_at":"2025-04-28T00:33:28.000Z","size":28,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-28T13:03:42.951Z","etag":null,"topics":["ghvm-managed"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/freckle.png","metadata":{"files":{"readme":"README.lhs","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-25T18:49:16.000Z","updated_at":"2025-04-24T18:18:02.000Z","dependencies_parsed_at":"2025-04-24T17:39:02.887Z","dependency_job_id":null,"html_url":"https://github.com/freckle/debug-print","commit_stats":null,"previous_names":["freckle/debug-print"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/freckle/debug-print","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fdebug-print","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fdebug-print/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fdebug-print/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fdebug-print/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freckle","download_url":"https://codeload.github.com/freckle/debug-print/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freckle%2Fdebug-print/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260115204,"owners_count":22961026,"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":["ghvm-managed"],"created_at":"2025-03-10T21:55:59.575Z","updated_at":"2025-06-16T06:40:36.499Z","avatar_url":"https://github.com/freckle.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debug-print\n\nOffers `ToDebugPrintValue`, a structured alternative to `Show`\nfor printing values for testing and debugging purposes.\n\n\u003c!--\n```haskell\nmodule Main (main) where\n\nimport Prelude\n\nimport Data.Text (Text)\nimport GHC.Generics (Generic)\nimport Text.Markdown.Unlit ()\nimport Test.Hspec\n```\n--\u003e\n\n```haskell\nimport DebugPrint\nimport DebugPrint.Aeson\nimport Data.Aeson qualified as Aeson\n```\n\n```haskell\ndata Report = Report\n  { milliseconds :: Int\n  , errors :: [Text]\n  , fileName :: Maybe Text\n  }\n  deriving stock Generic\n  deriving anyclass (ToDebugPrintRecord, ToDebugPrintValue)\n\nreport :: Report\nreport = Report{ milliseconds = 5_824\n                , errors = [\"Warning! Problems.\"]\n                , fileName = Nothing }\n```\n\n```haskell\nmain :: IO ()\nmain = hspec $ do\n  it \"\" $ do\n    Aeson.encode (debugPrintValueToAeson report) `shouldBe`\n      \"{\\\"errors\\\":[\\\"Warning! Problems.\\\"],\\\"milliseconds\\\":5824}\"\n```\n\n---\n\n[LICENSE](./LICENSE) | [CHANGELOG](./CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreckle%2Fdebug-print","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreckle%2Fdebug-print","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreckle%2Fdebug-print/lists"}