Thanks a lot Mr. jules now the code is working perfectly for higher values , the problem was with ord . -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070517/61bbe702/attachment.htm