aeson-yak 0.1.0.2 → 0.1.1
raw patch · 3 files changed
+6/−2 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Data.Aeson.Yak: instance GHC.Classes.Eq a => GHC.Classes.Eq (Data.Aeson.Yak.Lousy a)
+ Data.Aeson.Yak: instance GHC.Show.Show a => GHC.Show.Show (Data.Aeson.Yak.Lousy a)
Files
- CHANGELOG +2/−0
- aeson-yak.cabal +1/−1
- src/Data/Aeson/Yak.hs +3/−1
CHANGELOG view
@@ -1,3 +1,5 @@+0.1.1.0: Eq and Show instances for Lousy. + 0.1.0.2: Get CHANGELOG into the tarball. 0.1.0.1: Fix description rendering on Hackage.
aeson-yak.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: aeson-yak -version: 0.1.0.2 +version: 0.1.1 synopsis: Handle JSON that may or may not be a list, or exist description: According to the standard promoted by Schema.org, the same JSON object
src/Data/Aeson/Yak.hs view
@@ -67,7 +67,9 @@ shave Nothing = [] shave (Just nit) = pick nit -newtype Lousy a = Lousy { pick :: [a] } +newtype Lousy a = Lousy { pick :: [a] } deriving (Eq) +instance (Show a) => Show (Lousy a) where + show = ("Lousy " ++) . show . pick instance (ToJSON a) => ToJSON (Lousy a) where toJSON nit = case pick nit of