on master help sign in
Explicit definition of toEncoding for Version type.
297694aDaniel Díaz
Data/Aeson/Types/Instances.hs+3
@@ -1472,6 +1472,9 @@ instance ToJSON Version where
1472 toJSON = toJSON . showVersion
1472 toJSON = toJSON . showVersion
1473 {-# INLINE toJSON #-}
1473 {-# INLINE toJSON #-}
1474
1474
1475+ toEncoding = toEncoding . showVersion
1476+ {-# INLINE toEncoding #-}
1477+
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