Skip to content

Commit ce7ecf1

Browse files
committed
Removed unnecessary uses of toJSON
1 parent 4b14e6e commit ce7ecf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Network/JsonRpc/Types.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ instance FromJSON Id where
135135

136136
instance ToJSON Id where
137137
toJSON i = case i of
138-
IdString x -> toJSON x
139-
IdNumber x -> toJSON x
138+
IdString x -> String x
139+
IdNumber x -> Number x
140140
IdNull -> Null
141141

142142
-- | Error to be returned to the client.

0 commit comments

Comments
 (0)