Reputation: 1861
I'm trying to use the Debugger with elm-reactor but I get this error:
`Debug` does not expose `watch`.
I'm importing the Debug package:
import Debug
as per the mouse example
Upvotes: 2
Views: 721
Reputation: 6797
As of 0.17.0
release, Debug package no longer exposes watch
function.
Debug.watch
only makes sense in the context of Time-Travel Debugging, which is not available in 0.17.0
release.
The example you are referring to is written using Elm 0.16.0
, any examples using Signal
package are not relevant anymore.
See more details on the latest release in the official blog post from Evan: A Farewell to FRP
Upvotes: 6
Reputation: 36375
watch
was removed from Debug prior to the release of 0.17.
Here is a discussion about the decision which oscillates between moving watch
and watchSummary
to a new Reactor
module (since they were only useful within elm-reactor), or replacing them altogether with log
and logSummary
. Neither of these resolutions have happened as of 0.17, so we are left without them for now.
Upvotes: 5