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

0.18: documentation for Basics.never not in line with rest of API #744

Closed
jvoigtlaender opened this Issue Oct 31, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@jvoigtlaender
Contributor

jvoigtlaender commented Oct 31, 2016

The documentation currently makes use of this piece of code:

getTime : Cmd Msg
getTime =
  Task.perform never CurrentTime Time.now

But the actual type of Task.perform in this version of core is:

Task.perform : (a -> msg) -> Task Never a -> Cmd msg

That does not fit.

Aside: The documentation of the never function as originally in elm-community/basics-extra is here: http://package.elm-lang.org/packages/elm-community/basics-extra/1.2.0/Basics-Extra#never. But it also cannot be used as is, since it mentions Task.perform as well.

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Nov 1, 2016

Member

Fixed in that patch. Thanks for pointing this out!

Member

evancz commented Nov 1, 2016

Fixed in that patch. Thanks for pointing this out!

@evancz evancz closed this Nov 1, 2016

@gdennie

This comment has been minimized.

Show comment
Hide comment
@gdennie

gdennie Apr 10, 2017

The Elm Guide refers to the attribute function, type_, which no longer exist and is now, type', instead.

Separately, is there a good place to locate quality documentation on the latest version of elm: 0.18.x?

gdennie commented Apr 10, 2017

The Elm Guide refers to the attribute function, type_, which no longer exist and is now, type', instead.

Separately, is there a good place to locate quality documentation on the latest version of elm: 0.18.x?

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