We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4386dd8 commit 2a61085Copy full SHA for 2a61085
src/Simplex/Messaging/Protocol.hs
@@ -2258,7 +2258,11 @@ $(J.deriveJSON defaultJSON ''MsgFlags)
2258
2259
$(J.deriveJSON (sumTypeJSON id) ''CommandError)
2260
2261
-$(J.deriveJSON (sumTypeJSON $ dropPrefix "NE") ''NetworkError)
+$(J.deriveToJSON (sumTypeJSON $ dropPrefix "NE") ''NetworkError)
2262
+
2263
+instance FromJSON NetworkError where
2264
+ parseJSON = $(J.mkParseJSON (sumTypeJSON $ dropPrefix "NE") ''NetworkError)
2265
+ omittedField = Just NEFailedError
2266
2267
$(J.deriveJSON (sumTypeJSON id) ''BrokerErrorType)
2268
0 commit comments