Skip to content

Fix sets #1

@janwirth

Description

@janwirth
-- [decgen-start]
type alias A = Set.Set Int
type alias Rec = {set : Set.Set Int}

-- [decgen-generated-start] -- DO NOT MODIFY or remove this line
decodeA =
   Decode.map Set.Set Decode.int

decodeRec =
   Decode.map
      Rec
         ( Decode.field "set" decodeSet.SetInt )

encodeA (Set.Set a1) =
   Encode.int a1

encodeRec a =
   Encode.object
      [ ("set", encodeSet.SetInt a.set)
      ] 
-- [decgen-end]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions