https://github.com/vmchale/pointfree
Wrapper of pointfree command-line tool for Haskell
https://github.com/vmchale/pointfree
Last synced: 11 months ago
JSON representation
Wrapper of pointfree command-line tool for Haskell
- Host: GitHub
- URL: https://github.com/vmchale/pointfree
- Owner: vmchale
- License: bsd-3-clause
- Created: 2017-07-27T19:12:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-17T03:05:30.000Z (about 6 years ago)
- Last Synced: 2025-01-08T12:07:57.575Z (about 1 year ago)
- Language: Vim script
- Size: 6.84 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pointfree
## Installation
Using [vim-plug](https://github.com/junegunn/vim-plug):
```vimscript
Plug 'vmchale/pointfree'
```
Note that the `pointfree` binary must be on your path. You can install it with:
```bash
$ cabal install pointfree
```
## Usage
To use this plugin, either type `:PointfreeLine` to run on the current line, or
`:Pointfree` along with an expression, e.g.
```vimcsript
:Pointfree \x -> x * 2
```
## Configuration
This plugin provides one keybinding, but you have to pick the keys yourself.
This is what I use in my `.vimrc`:
```vimscript
au BufNewFile,BufRead *.hs nmap pf Pointfree
```
If you get stuck at any time, you can view the documentation with:
```vimscript
:help pointfree
```