Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fumieval/import-bikeshedder
https://github.com/fumieval/import-bikeshedder
Last synced: 23 days 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-20T04:40:31.000Z (about 8 years ago)
- Last Synced: 2024-10-15T06:50:55.679Z (2 months 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
```