port module BasicWorker exposing (..)

import Html
import Platform


main : Program Never String msg
main =
    Platform.program
        { init = ( "", report "it's alive!" )
        , update = \_ _ -> ( "", Cmd.none )
        , subscriptions = (\_ -> Sub.none)
        }


port report : String -> Cmd a

port module BasicWorker exposing (..)

import Platform


main : Program () String msg
main =
    Platform.worker
        { init = \_ -> ( "", reportFromWorker "it's alive!" )
        , update = \_ _ -> ( "", Cmd.none )
        , subscriptions = \_ -> Sub.none
        }


port reportFromWorker : String -> Cmd a

Rename report port to reportFromWorker
Rename report port to reportFromWorker
