Renamed to m-bock/elm-interactive. That is where the repository lives now. It has not been published as a package under the new name.
Versions published as thought2/elm-interactive still install under that name. 1 version of 1 come from the new location (see their notes).
Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/m-bock/elm-interactive.
What we checked: The repo moved to github.com/m-bock/elm-interactive. Rebuilt with git archive from commit a30145e6dff7 of https://github.com/m-bock/elm-interactive (zip prefix thought2-elm-interactive-3ef9681/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 af64be994af2f1327d710268293cff8c5cd96b45.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/thought2/elm-interactive/zipball/1.0.0/
This package let's you setup an interactive Elm application. It makes it easy to have the current time, mouse position, pressed keys and window size inside the model of your app. It is a thin wrapper around some native and community packages that provide you the necessary subscriptions, it saves you from dealing with some boilerplate to quickly get something interactive running.
You just have to add the following steps to your app:
import Interactive
type alias Model =
{ interactive : Interactive.Model
}
init : ( Model, Cmd Msg )
init =
let
( subModel, subCmd ) =
Interactive.init
in
( { interactive = subModel
}
, Cmd.map InteractiveMsg subCmd
)
type Msg
= InteractiveMsg Interactive.Msg
update : Msg -> Model -> ( Model, Cmd Msg )
update msg model =
case msg of
InteractiveMsg subMsg ->
( { model
| interactive =
Interactive.update subMsg model.interactive
|> Tuple.first
}
, Cmd.none
)
subscriptions : Model -> Sub Msg
subscriptions _ =
Sub.map InteractiveMsg Interactive.subscriptionsThis would subscribe to everything covered by this package. You can also have selective subscriptions. Check out the API for this.