Skip to content

The Haskell point-free tool inside Neovim!

License

Notifications You must be signed in to change notification settings

farbodsz/pointfree.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pointfree.nvim

Convert Haskell code into point-free Haskell code, within Neovim!

This plugin lets you use the pointfree tool inside the editor, transforming the current line, or with a visual selection.

demo-gif

Installation

Requirements:

Then, add this plugin using your favourite Neovim package manager:

use({
  "farbodsz/pointfree.nvim",
  requires = "nvim-lua/plenary.nvim",
  ft = "haskell"
})

Usage

  • Run :Pointfree to replace your current line with the pointfree version
  • In visual mode, use :PointfreeSelection to replace your selection with the pointfree version

About

Motivation

Haskell programmers often write in pointfree style, which is considered cleaner. The existing tools for transforming a function definition into pointfree style are wonderful, but it would be even better if these were integrated into the text-editing experience.

Credits

See also

There are a couple similar Vim plugins which I was unaware of when developing this one. These work slightly differently to this plugin:

License

This plugin is licensed under the MIT License.

About

The Haskell point-free tool inside Neovim!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published