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:
parent
188fd65fff
commit
e44ca9a165
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user