pointfree-1.1.1.5: Tool for refactoring expressions into pointfree form

Safe HaskellNone
LanguageHaskell98

Pointfree

Synopsis

Documentation

pointfree :: String -> [String] Source #

>>> pointfree "I'm not a valid Haskell expression!"
[]
>>> pointfree "sum xs = foldr (+) 0 xs"
["sum = id (fix (const (foldr (+) 0)))","sum = fix (const (foldr (+) 0))","sum = foldr (+) 0"]

pointfree' :: String -> Maybe String Source #

>>> pointfree' "I'm not a valid Haskell expression!"
Nothing
>>> pointfree' "sum xs = foldr (+) 0 xs"
Just "sum = foldr (+) 0"