@hackage / pointfree

Tool for refactoring expressions into pointfree form

Latest1.1.1.12

About

Metadata

  • Last updated , by Bodigrim
  • License LicenseRef-OtherLicense
  • Maintained by: Ben Millwood <thebenmachine+git@gmail.com>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 9.8.2
  2. 9.6.2
  3. 9.4.5
  4. 9.2.5
  5. 9.0.2

Readme

Pointfree refactoring tool

Stand-alone command-line version of the point-less plugin for lambdabot. Detailed information about the use of this tool is available at http://haskell.org/haskellwiki/Pointfree.

Integration with GHCi: Make sure that the directory containing the pointfree executable is in your PATH environment variable and add the following line to your GHCi configuration file:

:def pf \str -> return $ ":! pointfree "" ++ str ++ """

Or modify the line to point directly to the executable. Invoke pointfree with commands like

:pf \x y -> x + y

Future directions

It would be nice to make pointfree a library that operated on ASTs.