Skip to content

JSon instances for Map/Set require Ord constraint #225

Open
@bladyjoker

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodegen

    Type

    No type

    Projects

    • Status

      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions