Skip to content

Commit

Permalink
Add pux/psc bug workaround (alexmingoia/purescript-pux#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
akegalj committed Jul 19, 2016
1 parent 1127c9e commit c573e45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion block-explorer/src/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import Pux.Router (sampleUrl)
import Signal ((~>))
import Signal.Channel (channel, CHANNEL, subscribe)

import Unsafe.Coerce (unsafeCoerce)

type AppEffects = (console :: CONSOLE, ws :: C.WEBSOCKET, dom :: DOM)

-- | App configuration
Expand All @@ -36,7 +38,7 @@ config state = do
let wsSignal = subscribe wsInput ~> SocketAction
pure
{ initialState: state { socket = Just socket }
, update: update
, update: unsafeCoerce update
, view: view
, inputs: [wsSignal]
}
Expand Down

0 comments on commit c573e45

Please sign in to comment.