{"id":19512310,"url":"https://github.com/vmchale/hask-replace","last_synced_at":"2025-06-26T14:35:59.143Z","repository":{"id":62439998,"uuid":"98708498","full_name":"vmchale/hask-replace","owner":"vmchale","description":"Command-line tool to rename modules in Haskell projects","archived":false,"fork":false,"pushed_at":"2018-09-27T22:36:10.000Z","size":479,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-12T21:53:51.713Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vmchale.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}},"created_at":"2017-07-29T04:35:11.000Z","updated_at":"2022-05-13T01:14:25.000Z","dependencies_parsed_at":"2022-11-01T22:00:51.284Z","dependency_job_id":null,"html_url":"https://github.com/vmchale/hask-replace","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fhask-replace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fhask-replace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fhask-replace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vmchale%2Fhask-replace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vmchale","download_url":"https://codeload.github.com/vmchale/hask-replace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224026023,"owners_count":17243377,"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-11-10T23:25:24.456Z","updated_at":"2024-11-10T23:25:25.890Z","avatar_url":"https://github.com/vmchale.png","language":"Rust","readme":"# hask-replace\n\n[![Windows build status](https://ci.appveyor.com/api/projects/status/github/vmchale/hask-replace?svg=true)](https://ci.appveyor.com/project/vmchale/hask-replace)\n[![Build Status](https://travis-ci.org/vmchale/hask-replace.svg?branch=master)](https://travis-ci.org/vmchale/hask-replace)\n\n`hask-replace` is a command-line tool for renaming\nHaskell, Elm, PureScript, and Idris modules.\n\n## The Pitch\n\nHere's an example of how you would use `hr`:\n\n```bash\ncabal unpack dhall\ncd dhall-1.5.1/\nhr module . \"Dhall.Import\" \"Dhall.Dependencies\"\ncabal new-build\n```\n\nAs you can see, it's a lot less painful than whatever witchcraft you'd have to\nresort to to accomplish the same thing in bash.\n\n## The Anti-Pitch\n\n`hr` doesn't attempt to be a full parser for `cabal`, `idris`, `elm`, etc. While\n`hr` promises to always transform *valid* projects into valid projects, it won't\nnecessarily point out errors in your project.\n\n## Installation\n\n### Script\n\nThe easiest way to install for most users is probably via a shell script, viz.\n\n```\ncurl -LSfs https://japaric.github.io/trust/install.sh | sh -s -- --git vmchale/hask-replace\n```\n\n### Binary releases\n\nIf the script doesn't work, you can also download prebuilt binaries.\nYou can find binaries for various platforms on the\n[release](https://github.com/vmchale/hask-replace/releases) page.\n\n### Cargo\n\nFirst, install [cargo](https://rustup.rs/). Then:\n\n```bash\n $ cargo install --git https://github.com/vmchale/hask-replace\n```\n\nYou will need to use the nightly release for this to work; if in doubt run\n\n```bash\n $ rustup run nightly cargo install --git https://github.com/vmchale/hask-replace\n```\n\n## Performance\n\n| Package | Task | Time |\n| ------- | ---- | ---- |\n| dhall | Rename Module | 7.185 ms |\n| lens | Rename Module | 9.671 ms |\n\n## Use\n\nExample use:\n\n```bash\ngit clone https://github.com/HuwCampbell/idris-lens.git\ncd idris-lens\nhr idris . Control.Lens.Maths Control.Lens.Math\nidris --build lens.ipkg\n```\n\n### Vim Plugin\n\nThere is a vim plugin for hask-replace\n[here](https://github.com/vmchale/hask-replace-vim). It supports copying and\nmoving Haskell, Elm, and Idris modules.\n","funding_links":[],"categories":["Other"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmchale%2Fhask-replace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvmchale%2Fhask-replace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvmchale%2Fhask-replace/lists"}