Hacker News new | ask | show | jobs
by ImNotAKompjoetr 3924 days ago
because in haskell functions are curried,

  function_name :: param1 -> param2 -> return
is a function that if you only give it param1 it returns a function that takes an argument of param2Type and returns returnType. This way you can easily compose functions
1 comments

parans make it more obvious:

f :: param1 -> (param2 -> return)

ret = (f p1) p2