Skip to content

JSon instances for Map/Set require Ord constraint #225

Open
@bladyjoker

Description

@bladyjoker

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

Metadata

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