I'd like to quickly and correctly reduce functions to point free form in Haskell. I'd prefer to produce fairly readable outcomes. How should I go about this?
Haskell utility to make function point free
222 Views Asked by sof At
2
There are 2 best solutions below
0

The Haskell wiki covers tools for pointfree refactoring here. It mainly covers Lambdabot, an IRC bot that does pointfree and pointful refactoring:
@pl \x y -> EQ == compare x y
((EQ ==) .) . compare
[1] Example from http://ircbrowse.net/browse/haskell?id=19908612×tamp=1421726397#t1421726397
There is actually a program called "pointfree"
Do this
then this at the command line
Warning- although some pointfree outcomes are wonderful, others are pretty scary....