Parser: add map function to Monad functor

As required by newer versions of Core.
Merge pull request #7 from agarwal/core

Parser: add map function to Monad functor