https://github.com/fumieval/import-bikeshedder
https://github.com/fumieval/import-bikeshedder
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fumieval/import-bikeshedder
- Owner: fumieval
- License: bsd-3-clause
- Created: 2016-04-14T08:21:48.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-20T04:40:31.000Z (over 9 years ago)
- Last Synced: 2025-01-31T08:28:01.801Z (over 1 year ago)
- Language: Haskell
- Size: 5.86 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
import-bikeshedder
======
Import sorting tool for Haskell sources
Usage
----
`$ import-bikeshedder [command] -- [paths]` generates diffs.
commands:
* `shuffle` Shuffle imports.
* `sort` Sort imports in an alphabetical manner.
* `sortby /path/to/grouping-rules` Sort imports using the given set of grouping rules.
An example of a grouping rule file:
```
-1
Prelude
1
My.Project.Prefix
2
Debug
```
Example
----
```
$ import-bikeshedder sortby .hs-import-groups -- $(git diff origin --name-only src/) | git apply
```