Thanks: Inferred type is not general enough

2001-08-08 Thread Cagdas Ozgenc
Thanks to all who responded.

Re: Inferred type is not general enough

2001-08-08 Thread Ketil Malde
"Cagdas Ozgenc" <[EMAIL PROTECTED]> writes: > The following function generates a type error. > > headColumnwise :: [a] -> a > headColumnwise line = [ head line | line <- p ] Surely, the parameter should be "p"? > ERROR ch6ex1.hs:14 - Infer

Inferred type is not general enough

2001-08-08 Thread Cagdas Ozgenc
Hi, The following function generates a type error. headColumnwise :: [a] -> a headColumnwise line = [ head line | line <- p ] ERROR ch6ex1.hs:14 - Inferred type is not general enough *** Expression: headColumnwise *** Expected type : [a] -> a *** Inferred type : [[a]] -> [a]