Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ujihisa/unite-haskellimport
:Unite haskellimport
https://github.com/ujihisa/unite-haskellimport
Last synced: about 1 month ago
JSON representation
:Unite haskellimport
- Host: GitHub
- URL: https://github.com/ujihisa/unite-haskellimport
- Owner: ujihisa
- Created: 2011-12-21T06:47:05.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2019-01-17T11:24:21.000Z (almost 6 years ago)
- Last Synced: 2024-05-01T23:19:47.251Z (7 months ago)
- Language: Vim script
- Homepage:
- Size: 33.2 KB
- Stars: 12
- Watchers: 5
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unite-haskellimport
## Install
This plugin requires [unite.vim](https://github.com/Shougo/unite.vim) and [hoogle](http://hackage.haskell.org/package/hoogle).You need to install hoogle and generate a local database
```shell
$ cabal update && cabal install hoogle && hoogle data
```## Usage
Lanuch unite-haskellimport.```vim
:Unite haskellimport
```Input a function name and choose what you want to import.
![choose candidates](http://i.gyazo.com/cc8deb70ca681eed36fac482567a43aa.png)
Then, the import sentence is inserted at suitable position.
![inserted import](http://i.gyazo.com/f0db4517158a05721cb6def269065e33.png)
## Testing
* Use [themis](https://github.com/thinca/vim-themis)
```
$ themis ./test/haskellimport.vim
1..2
ok 1 - haskellimport import
ok 2 - haskellimport import_with_pragmas# tests 2
# passes 2
```## Authors
* Tatsuhiro Ujihisa
* Itchyny## License
GPLv3 or any later version