@@ -449,9 +449,9 @@ deriveSerializeInternal conf headTy cons next = do
449-- | @deriveSerializeWith config instance-dec@ generates a template Haskell
449-- | @deriveSerializeWith config instance-dec@ generates a template Haskell
450-- splice consisting of a declaration of a 'Serialize' instance. @instance-dec@
450-- splice consisting of a declaration of a 'Serialize' instance. @instance-dec@
451-- is a template Haskell declaration splice consisting of a standard Haskell
451-- is a template Haskell declaration splice consisting of a standard Haskell
452−-- instance declaration without the type class methods. The type class methods
452+-- instance declaration without the type class methods (e.g. @[d|instance
453+-- Serialize a => Serialize (Maybe a)|]@). The type class methods for the given
453−-- for the given instance are generated according to the supplied @config@
454+-- instance are generated according to the supplied @config@ parameter.
@@ -501,8 +501,9 @@ deriveSerializeWith conf mDecs = do
501 go (AppT l _) = go l
501 go (AppT l _) = go l
502 go _ = errorMessage dec
502 go _ = errorMessage dec
504−-- | Given a 'Serialize' instance declaration splice without the methods,
504+-- | Given an 'Serialize' instance declaration splice without the methods (e.g.
505+-- @[d|instance Serialize a => Serialize (Maybe a)|]@), generate an instance
505−-- generate a full instance declaration including all the type class methods.
506+-- declaration including all the type class method implementations.
507-- >>> deriveSerialize = deriveSerializeWith serializeConfig
508-- >>> deriveSerialize = deriveSerializeWith serializeConfig