Add error handling and parse `mappend` and deriving declarations.