{"id":16339126,"url":"https://github.com/phadej/cabal-refact","last_synced_at":"2025-06-11T14:11:09.923Z","repository":{"id":66241943,"uuid":"78567620","full_name":"phadej/cabal-refact","owner":"phadej","description":"Refactoring tool for .cabal files","archived":false,"fork":false,"pushed_at":"2017-05-13T09:39:54.000Z","size":80,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-07T12:11:21.132Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phadej.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":"2017-01-10T19:43:26.000Z","updated_at":"2023-06-27T20:25:00.000Z","dependencies_parsed_at":"2023-02-20T16:46:13.212Z","dependency_job_id":null,"html_url":"https://github.com/phadej/cabal-refact","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/phadej%2Fcabal-refact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phadej%2Fcabal-refact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phadej%2Fcabal-refact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phadej%2Fcabal-refact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phadej","download_url":"https://codeload.github.com/phadej/cabal-refact/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phadej%2Fcabal-refact/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259280304,"owners_count":22833424,"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-10T23:53:33.720Z","updated_at":"2025-06-11T14:11:09.917Z","avatar_url":"https://github.com/phadej.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cabal-refact\n\nA tool for editing `.cabal` files.\n\n## Synopsis\n\n```\n$ grep aeson example.cabal\n\n$ cabal-refact edit-bound aeson '\u003c1.1' '\u003c 1.2'\n\n$ grep aeson example.cabal\n```\n\n*NOTE:* not yet implemented!\n\n## Installing\n\nCurrently `cabal-refact` isn't released on Hackage. To install, clone this repository\nand `cabal new-build \u0026\u0026 cp dist-newstyle/**/cabal-refact/cabal-refact ~/.local/bin`\nor `stack install`\n\n## Example refactorings\n\nSee haddock documentation for the rest of the refactorings.\n\n### Identity\n\nThis is refactoring is important for testing that parser and pretty-printer\nare able to do formatting-preserving roundtrip.\n\n```\n$ cabal-refact identity --dry fixtures/increase-revision/focus.cabal\nno changes\n```\n\n### Increase revision\n\nIncrease `x-revision` counter, or add `x-revision: 1` after the `name` field, if\n`x-revision` field doesn't exist.\n\n```\n$ cabal-refact increase-revision --dry fixtures/increase-revision/focus.cabal\n========================================================================\n  name:\n    focus\n+ x-revision:\n+   1\n  version:\n    0.1.5\n  synopsis:\n```\n\n### Populate extra source files\n\nPopulate `extra-source-files` field using comment pragma.\n\n```\n$ cabal-refact populate-extra-source-files --dry cabal-refact.cabal\n========================================================================\n      CHANGELOG.md\n      README.md\n      -- cabal-refact-populate: fixtures/**/*.*\n+     fixtures/identity/Agda.cabal\n+     fixtures/identity/JuicyPixels.cabal\n+     fixtures/identity/QuickCheck.cabal\n...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphadej%2Fcabal-refact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphadej%2Fcabal-refact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphadej%2Fcabal-refact/lists"}