Fix for GHC 7.8: use standalone deriving for Typeable instance
Fix deprecation warning: add Applicative instance to Monad
Merge pull request #187 from nominolo/master

Fix build with GHC 7.8 RC1