Task.perform now takes a task that cannot fail (hence the 'Never' in its 
type).  So I have no clue what your Scroll.toTop call returns as a type, 
but if it cannot fail (Never on the error condition type) then just remove 
one of your `(always NoOp)` calls, else change `Task.perform` call into 
`Task.attempt` while also removing one of the `(always NoOp)` calls as it 
gives you a Result instead.

Docs:
http://package.elm-lang.org/packages/elm-lang/core/latest/Task#perform
http://package.elm-lang.org/packages/elm-lang/core/latest/Task#attempt


On Friday, January 6, 2017 at 1:40:40 PM UTC-7, Rex van der Spuy wrote:
>
> Hi Everyone,
>
> In upgrading an 0.17 app I ran across this line of code:
>
> ```
> Task.perform (always NoOp) (always NoOp) (Scroll.toTop 
> "questionsContainer") 
> ```
>
> I understand that `Task.perform` was re-designed with this signature:
>
> ```
> perform : (a -> msg) -> Task Never a -> Cmd msg
> ```
>
> But, I haven't been able to figure out how to apply this to my old line of 
> code.
> Can anyone suggest what I should try?
>
> Thanks!
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to