Hello michael, Saturday, April 18, 2009, 6:56:20 PM, you wrote:
> Is there a general function to count list elements. I'm trying this you should add Eq restriction to type declaration since "==" operation belomngs to Eq class and your function may work only with types supporting comparision: count :: (Eq a) => a -> [a] -> Int -- Best regards, Bulat mailto:bulat.zigans...@gmail.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe