Explicit definition of toEncoding for Version type.
commit297694af8b5e02fa188cd7a368c0afb814726307
authorDaniel Díaz <dhelta.diaz@gmail.com>
dateFri 23 Oct 2015, 09:59 (11 years ago)
parente18f9a9
Data/Aeson/Types/Instances.hs+3
@@ -1472,6 +1472,9 @@ instance ToJSON Version where
14721472 toJSON = toJSON . showVersion
14731473 {-# INLINE toJSON #-}
14741474
1475+ toEncoding = toEncoding . showVersion
1476+ {-# INLINE toEncoding #-}
1477+
14751478instance FromJSON Version where
14761479 {-# INLINE parseJSON #-}
14771480 parseJSON = withText "Version" $ go . readP_to_S parseVersion . unpack