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 update for Random (map3) #915

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@dstreet26

dstreet26 commented Oct 21, 2017

The example shows map3 being used to combine 3 generators to produce random colors.

Link to Doc

Here is more or less the error that someone would get if they tried to use the example as-is.

-- TYPE MISMATCH --------

Function `map` is expecting the 2nd argument to be:

    Generator Float

But it is:

    Generator Int
@process-bot

This comment has been minimized.

Show comment
Hide comment
@process-bot

process-bot Oct 21, 2017

Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

process-bot commented Oct 21, 2017

Thanks for the pull request! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Mar 7, 2018

Member

The examples got updated, so the new thing there is https://github.com/elm-lang/core/blob/master/src/Random.elm#L377-L403

Longer term, we'd like to add an examples/ folder to all packages such that snippets can come with an Elm file that is compiled before publication. The idea would be that you can then refer to lines from those files.

Member

evancz commented Mar 7, 2018

The examples got updated, so the new thing there is https://github.com/elm-lang/core/blob/master/src/Random.elm#L377-L403

Longer term, we'd like to add an examples/ folder to all packages such that snippets can come with an Elm file that is compiled before publication. The idea would be that you can then refer to lines from those files.

@evancz evancz closed this Mar 7, 2018

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