Skip to content

Auto-fix module of .hs files from the definition of `package.yaml`.

License

Notifications You must be signed in to change notification settings

YusukeHosonuma/fix-module

Repository files navigation

fix-module

A CLI tool that auto-fix module name of .hs files from the definition of package.yaml.

$ cd <stack-project-root>
$ 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

$ brew tap YusukeHosonuma/fix-module
$ brew install fix-module

Manual

$ stack install
$ ~/.local/bin/fix-module # or add `~/.local/bin` to PATH environment

Development

Requirements:

$ stack build
$ stack test

Issues and PR

You have any ideas or found bugs? Any issue or PR is welcome.
Thanks!

Author

Yusuke Hosonuma / @tobi462