ToJSON and FromJSON Char instances #1

Closed
opened 2023-03-04 08:13:12 +01:00 by belka · 1 comment
Owner

Char can be encoded as string since GraphQL doesn't have chars. The unfortunate consequence is that a String is encoded and decoded as a list of strings.

  • Aeson makes use of overlapping instances to define different representations for Char and [Char].
  • We can live with a list of strings since it is what it really is in Haskell, a list.
  • We can let it be, then the user has to disambiguate this manually.
Char can be encoded as string since GraphQL doesn't have chars. The unfortunate consequence is that a `String` is encoded and decoded as a list of strings. - Aeson makes use of overlapping instances to define different representations for `Char` and `[Char]`. - We can live with a list of strings since it is what it really is in Haskell, a list. - We can let it be, then the user has to disambiguate this manually.
belka added the
Kind
enhancement
label 2023-03-04 08:16:35 +01:00
belka added the
Status
wontfix
label 2023-04-11 16:47:28 +02:00
belka closed this issue 2023-04-11 16:47:31 +02:00
Author
Owner

Since the solution would add ambiguity to the list representation as GraphQL value, let it be as is for now.

Since the solution would add ambiguity to the list representation as GraphQL value, let it be as is for now.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: OSS/graphql-spice#1
No description provided.