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

Documentation still references automatic record constructor #62

Closed
Jwashton opened this issue May 12, 2023 · 0 comments · Fixed by #63
Closed

Documentation still references automatic record constructor #62

Jwashton opened this issue May 12, 2023 · 0 comments · Fixed by #63

Comments

@Jwashton
Copy link
Contributor

A number of the examples in the documentation are now misleading after automatic record constructors were removed from the language in gren-lang/compiler#41.

For example, this code in the documentation for Json.Decode.map2

type alias Point =
    { x : Float, y : Float }

point : Decoder Point
point =
    map2 Point -- Compiler error: I cannot find a `Point` variant
        (field "x" float)
        (field "y" float)

Here's a list of the places I've found where this occurs:

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

Successfully merging a pull request may close this issue.

1 participant