Thanks Steffen. This one worked.  

Cheers
Karthik. 

--- [EMAIL PROTECTED] wrote:
> Hello.
>  
>  >     The code is as follows - 
>  > <-- Code starts -->
>  > entry :: [Char] -> [(Char,Int)]
>  > entry list = do t <- getGroups list
>  >                 mergeGroups t
>  > 
>  > getGroups   :: [Char] -> [(Char,Int)]
>  > mergeGroups :: [(Char,Int)] -> [(Char,Int)]
>  > <-- Code Ends --> 
> 
>  You probably mean:
> 
>  entry list = let t = getGroups list in mergeGroups t
> 
>  or simpler
> 
>  entry = mergeGroups . getGroups
> 
>  Take a look at the instance Monad [ ] in the Prelude to
>  see, why your program does not work.
> 
>  Ciao,
>  Steffen
> 
> _______________________________________________
> Haskell-Cafe mailing list
> [EMAIL PROTECTED]
> http://www.haskell.org/mailman/listinfo/haskell-cafe


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
_______________________________________________
Haskell-Cafe mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to