on master help sign in
Fix toEncoding method for Either
commit527daebcee8f749ec39f67a7ec0d61cf5de80a2b authorBas van Dijk <v.dijk.bas@gmail.com> dateSat 10 Oct 2015, 14:11 (11 years ago) parentf012d09
1 file changed+2−2
Data/Aeson/Types/Instances.hs+2−2
Data/Aeson/Types/Instances.hs+2−2
@@ -142,9 +142,9 @@ instance (ToJSON a, ToJSON b) => ToJSON (Either a b) where
142142 {-# INLINE toJSON #-}
143143
144144 toEncoding (Left a) = Encoding $
145− B.shortByteString "{\"left\":" <> builder a <> B.char7 '}'
145+ B.shortByteString "{\"Left\":" <> builder a <> B.char7 '}'
146146 toEncoding (Right a) = Encoding $
147− B.shortByteString "{\"right\":" <> builder a <> B.char7 '}'
147+ B.shortByteString "{\"Right\":" <> builder a <> B.char7 '}'
148148 {-# INLINE toEncoding #-}
149149
150150instance (FromJSON a, FromJSON b) => FromJSON (Either a b) where