Skip to content

Commit

Permalink
Merge pull request #4679 from unisonweb/cp/namespace-diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
aryairani authored Feb 8, 2024
2 parents 14c9d97 + 4b9ca79 commit 6a6b7b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unison-share-api/src/Unison/Server/Orphans.hs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ instance ToJSON Name where
toEncoding = toEncoding . Name.toText
toJSON = toJSON . Name.toText

instance ToJSONKey Name where
toJSONKey = contramap Name.toText (toJSONKey @Text)

instance ToSchema Name where
declareNamedSchema _ = declareNamedSchema (Proxy @Text)

Expand Down

0 comments on commit 6a6b7b8

Please sign in to comment.