File tree 5 files changed +13
-14
lines changed
5 files changed +13
-14
lines changed Original file line number Diff line number Diff line change 1
1
port module Test.App exposing (..)
2
2
3
- import Html exposing (..)
4
- import Html.App
3
+ import Platform
5
4
import Time exposing (..)
6
5
import Websocket exposing (..)
7
6
import Listener
@@ -53,11 +52,10 @@ init =
53
52
model ! [ Websocket . startServer ServerError ServerStatus UnhandledMessage Nothing Nothing model. wsPort ]
54
53
55
54
56
- main : Program Never
55
+ main : Program Never Model Msg
57
56
main =
58
- Html . App . program
57
+ Platform . program
59
58
{ init = init
60
- , view = ( \ _ -> text " " )
61
59
, update = update
62
60
, subscriptions = subscriptions
63
61
}
Original file line number Diff line number Diff line change
1
+ rm -r elm-stuff/build-artifacts && elm make Test/App.elm --output elm.js
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 2 .0.0" ,
2
+ "version" : " 3 .0.0" ,
3
3
"summary" : " Websocket Server Effects Manager for Elm" ,
4
4
"repository" : " https://github.com/panosoft/elm-websocket-server.git" ,
5
5
"license" : " Unlicense" ,
12
12
],
13
13
"native-modules" : true ,
14
14
"dependencies" : {
15
- "elm-lang/core" : " 4.0.5 <= v < 5.0.0" ,
16
- "elm-lang/html" : " 1.1.0 <= v < 2.0.0" ,
17
- "panosoft/elm-debugf" : " 1.0.0 <= v < 2.0.0"
15
+ "elm-lang/core" : " 5.0.0 <= v < 6.0.0" ,
16
+ "panosoft/elm-debugf" : " 2.0.0 <= v < 3.0.0"
18
17
},
19
- "elm-version" : " 0.17.1 <= v < 0.18 .0"
18
+ "elm-version" : " 0.18.0 <= v < 0.19 .0"
20
19
}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ The native driver is https://github.com/websockets/ws
30
30
31
31
-}
32
32
33
+ import Tuple exposing (first , second )
33
34
import Dict exposing (Dict )
34
35
import Task exposing (Task )
35
36
import DebugF exposing (log , toStringF )
@@ -216,12 +217,12 @@ type alias State msg =
216
217
217
218
( &> ) : Task x a -> Task x b -> Task x b
218
219
( &> ) t1 t2 =
219
- t1 ` Task . andThen` \ _ -> t2
220
+ t1 |> Task . andThen ( \ _ -> t2)
220
221
221
222
222
223
( &>> ) : Task x a -> ( a -> Task x b) -> Task x b
223
224
( &>> ) t1 f =
224
- t1 ` Task . andThen` f
225
+ t1 |> Task . andThen f
225
226
226
227
227
228
@@ -490,8 +491,8 @@ getServer state wsPort =
490
491
listenerTaggers : State msg -> WSPort -> Maybe Path -> List (ListenerTaggers msg )
491
492
listenerTaggers state wsPort maybePath =
492
493
Dict . toList state. listeners
493
- |> List . filter ( \ ( ( wsPort' , path ) , taggers ) -> wsPort' == wsPort && maybePath |?> ( \ path' -> path' == path) ?= True )
494
- |> List . map snd
494
+ |> List . filter ( \ ( ( wsPort_ , path ) , taggers ) -> wsPort_ == wsPort && maybePath |?> ( \ path_ -> path_ == path) ?= True )
495
+ |> List . map second
495
496
496
497
497
498
withListenerTaggers : State msg -> WSPort -> Maybe Path -> (List (ListenerTaggers msg ) -> Task Never (State msg )) -> Task Never (State msg )
You can’t perform that action at this time.
0 commit comments