Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Did Signal get renamed or removed from Elm v0.17?

I am following the tutorial of http://www.elm-tutorial.org/020_signals/introduction.html elm.

When I tried to execute the Signals example. I got the following error.

Exception : 

Cannot find variable `Signal.map`.

12|   Signal.map view Mouse.x
  ^^^^^^^^^^
The qualifier `Signal` is not in scope. 

I am using Elm : 0.17 and core 4.0.0

I could not find Signal module in the core package

like image 743
Ranjith Raj D Avatar asked May 11 '16 14:05

Ranjith Raj D


1 Answers

Yes, Signal was removed along with a number of other things (Mailboxes, Addresses, etc.) in favor of a move towards subscriptions (Sub) and commands (Cmd), rendering much of the documentation out there obsolete. See the 0.17 announcement for more information: http://elm-lang.org/blog/farewell-to-frp

You can find the upgrade plan here: https://github.com/elm-lang/elm-platform/blob/master/upgrade-docs/0.17.md

like image 186
Chad Gilbert Avatar answered Nov 05 '22 11:11

Chad Gilbert