1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-23 21:13:07 +03:00

Fix the ToJSON Uid instance

This commit is contained in:
Artyom Kazak 2018-09-01 19:37:40 +02:00
parent 188fd65fff
commit e44ca9a165

View File

@ -315,7 +315,7 @@ newtype Uid a = Uid {uidToText :: Text}
T.Buildable, Hashable)
instance A.ToJSON (Uid a) where
toJSON = A.genericToJSON A.defaultOptions
toJSON = toJSON . uidToText
-- This instance is written manually because otherwise it produces a warning:
-- • Redundant constraint: SafeCopy a