Type errors in Haskell programming languages - Plz help
kaykaydreamz at yahoo.com
Wed Nov 5 01:16:59 EST 2003
I was trying this Haskell program and was getting the following type
The code is as follows -
<-- Code starts -->
entry :: [Char] -> [(Char,Int)]
entry list = do t <- getGroups list
getGroups :: [Char] -> [(Char,Int)]
mergeGroups :: [(Char,Int)] -> [(Char,Int)]
<-- Code Ends -->
The function getGroups and mergeGroups compile perfectly fine.
The error i am getting is in the function entry . To paste the message,
*** Expression : mergeGroups t
*** Term : t
*** Type : (Char,Int)
*** Does not match : [(Char,Int)]
Thanks in advance for helping me in this regard.
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
More information about the Haskell-Cafe