Ahh, see that there, the return type of `Scroll.toTop` is `Task.Task 
Dom.Error ()`, this in this case also change `Task.perform` to 
`Task.attempt`.  :-)


On Friday, January 6, 2017 at 1:59:06 PM UTC-7, Rex van der Spuy wrote:
>
> Thanks Overmind!
>
> I've done as you suggested and removed one `(always NoOp)` - that's makes 
> sense to me! 
> The compiler now gives me this error message:
>
> ``
>
> The 2nd argument to function `perform` is causing a mismatch. 215| 
> Task.perform 
> (always NoOp) (Scroll.toTop "questionsContainer") 
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Function `perform` is expecting the 2nd 
> argument to be: Task.Task Never b But it is: Task.Task Dom.Error ()
> ...
>
> `Scroll.toTop` comes from `elm-dom`:
>
> http://package.elm-lang.org/packages/debois/elm-dom/1.2.3/DOM
>
> ... but I now just realized that the API has changed in 0.18.
>
> Hmmm.... I need to think about this one! :)
>
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to