Skip to content

Commit

Permalink
Eq and Ord instance on UnionReturned.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakhtiyarneyman committed Jun 14, 2024
1 parent 7b66ea7 commit 7fa9862
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GraphQL/Client/Union.purs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ derive instance Newtype (GqlUnion r) _

newtype UnionReturned r = UnionReturned (Variant r)

derive newtype instance Eq (Variant r) => Eq (UnionReturned r)
derive newtype instance Ord (Variant r) => Ord (UnionReturned r)
derive instance Newtype (UnionReturned r) _

instance (RL.RowToList r rl, DecodeUnion rl r) => DecodeJson (UnionReturned r) where
Expand Down

0 comments on commit 7fa9862

Please sign in to comment.