[Haskell-beginners] partial application

Miguel Negrao miguel.negrao-lists at friendlyvirus.org
Mon Dec 3 13:28:08 CET 2012


Hi list,

Is there a syntax in Haskell for partial application that would be something like this the following ?

f a b c d  = a +b+ c+ d

g = f _ 1 2 3 

or the only way to do it is like below ?

g = (\x -> f x 1 2 3) 

Also, hlint complains about top-level functions without type even if they are not exported out of the corresponding module. Is is really bad style not put type signatures in all top-level functions ? I really like the fact that haskell takes care of the type signatures for me.

best,
Miguel
http://www.friendlyvirus.org/miguelnegrao/







More information about the Beginners mailing list