Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSon instances for Map/Set require Ord constraint #225

Open
bladyjoker opened this issue Jun 8, 2024 · 0 comments
Open

JSon instances for Map/Set require Ord constraint #225

bladyjoker opened this issue Jun 8, 2024 · 0 comments
Labels
bug Something isn't working codegen

Comments

@bladyjoker
Copy link
Contributor

instance (Json k, Json v, Ord k) => Json (Map k v) where

sum X = Y | Z
derive Json X

record Test  = {
  test : Map X Integer
}
derive Json Test

The generated code will break because X doesn't have Ord.

See #224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working codegen
Projects
Status: Todo
Development

No branches or pull requests

1 participant