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

Fix sets #1

Open
janwirth opened this issue Oct 17, 2019 · 0 comments
Open

Fix sets #1

janwirth opened this issue Oct 17, 2019 · 0 comments

Comments

@janwirth
Copy link
Owner

-- [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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant