Skip to content

Literature Review

Louis Kueh edited this page Nov 6, 2018 · 18 revisions
fun x y -> x + y fun x y -> foo x y 

Chaining functions

fun x -> not(isValid(x)) fun x -> x |> isValid |> not

Features

  • bracket reduction only (e.g. (foo) => foo)
foo xs = concat (map op xs) => concat . map op = > concatMap
  • Improve code and teach author better style. Doing modifications one by one individually improves style.

  • Display semantically changing hints

  • Severity

    • Error - parse error
    • warning - concat (map f x ) => concatMap f x
    • suggestion - worthwhile but not to be applied blindly
  • Ignore/suppress hints based on user input, as hints do not always make sense

Clone this wiki locally