Could you filter, then map? I'd try that instead of pattern matching. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.haskell.org/pipermail/beginners/attachments/20160107/369a0224/attachment.html>