Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fumieval/import-bikeshedder


https://github.com/fumieval/import-bikeshedder

Last synced: 23 days ago
JSON representation

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
```