@hackage / pointfree-fancy

Tool for refactoring expressions into pointfree form

Latest1.1.1.15

About

Metadata

  • Last updated , by vmchale
  • License BSD-3-Clause
  • Maintained by: Vanessa McHale <vamchale@gmail.com>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.6.4
  2. 8.4.4
  3. 8.2.2
  4. 8.0.2
  5. 7.10.3

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.