File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,8 @@ instance A.ToJSON Response where
125
125
, either (" error" .= ) (" result" .= ) result
126
126
, idKey .= i]
127
127
128
+ -- IdNumber cannot directly reference the type stored in A.Number,
129
+ -- since it changes between aeson-0.6 and 0.7.
128
130
data Id = IdString A. Value | IdNumber A. Value | IdNull
129
131
130
132
instance A. FromJSON Id where
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ instance A.FromJSON TestResponse where
51
51
((Left <$> obj .: " error" ) <|> (Right <$> obj .: " result" ))
52
52
parseJSON _ = empty
53
53
54
+ -- IdNumber cannot directly reference the type stored in A.Number,
55
+ -- since it changes between aeson-0.6 and 0.7.
54
56
data TestId = IdString A. Value | IdNumber A. Value | IdNull
55
57
deriving (Eq , Show )
56
58
You can’t perform that action at this time.
0 commit comments