https://github.com/yusukehosonuma/fix-module
Auto-fix module of .hs files from the definition of `package.yaml`.
https://github.com/yusukehosonuma/fix-module
haskell haskell-cli refactor
Last synced: 11 months ago
JSON representation
Auto-fix module of .hs files from the definition of `package.yaml`.
- Host: GitHub
- URL: https://github.com/yusukehosonuma/fix-module
- Owner: YusukeHosonuma
- License: mit
- Created: 2021-03-15T04:34:43.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-15T11:30:12.000Z (almost 5 years ago)
- Last Synced: 2025-01-30T12:18:03.413Z (about 1 year ago)
- Topics: haskell, haskell-cli, refactor
- Language: Haskell
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
# fix-module
A CLI tool that auto-fix module name of .hs files from the definition of `package.yaml`.
```bash
$ cd
$ fix-module # Warning: This command will overwrite .hs files
$ fix-module --verbose # With verbose log
```
## TODO
- [ ] Add support to `.cabal`.
- [ ] Auto-fix import. (undecided)
## Installation
### Homebrew
```bash
$ brew tap YusukeHosonuma/fix-module
$ brew install fix-module
```
### Manual
```bash
$ stack install
$ ~/.local/bin/fix-module # or add `~/.local/bin` to PATH environment
```
## Development
Requirements:
- [Stack](https://docs.haskellstack.org/en/stable/README/) 2.5.1
- [GHC](https://www.haskell.org/ghc/) 8.10.3
```bash
$ stack build
$ stack test
```
## Issues and PR
You have any ideas or found bugs? Any issue or PR is welcome.
Thanks!
## Author
[Yusuke Hosonuma](https://github.com/YusukeHosonuma) / [@tobi462](https://twitter.com/tobi462)