[GHC] #8797: Generics instances for monoid and applicative newtypes