@@ -1472,6 +1472,9 @@ instance ToJSON Version where
1472 toJSON = toJSON . showVersion
1472 toJSON = toJSON . showVersion
1473 {-# INLINE toJSON #-}
1473 {-# INLINE toJSON #-}
1475+ toEncoding = toEncoding . showVersion
1476+ {-# INLINE toEncoding #-}
1475instance FromJSON Version where
1478instance FromJSON Version where
1476 {-# INLINE parseJSON #-}
1479 {-# INLINE parseJSON #-}
1477 parseJSON = withText "Version" $ go . readP_to_S parseVersion . unpack
1480 parseJSON = withText "Version" $ go . readP_to_S parseVersion . unpack