Thanks ! that does work now. My next question was how do i only get "34" or "3" i.e. the Maybe value without wrapped in to a 'Maybe' ? Shishir -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150422/801962ab/attachment.html>