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

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

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