haste-compiler
haste-compiler copied to clipboard
Patched reactive-banana produces "Unsupported PrimOp"
Using this patched pqueue
package (see #195) and a patched reactive-banana (without the hashable
dependency) the following code:
{-# LANGUAGE RankNTypes #-}
import Haste
import Reactive.Banana as R
import Reactive.Banana.Frameworks
rct :: forall t. Frameworks t => AddHandler Int -> Moment t ()
rct addH = do
a <- fromAddHandler addH
reactimate $ fmap (writeLog . show) a
main :: IO ()
main = do
(addH, fire) <- newAddHandler
network <- compile $ rct addH
actuate network
writeLog "test"
fire 3
results in
node FRP.js
test
/.../src/Client/FRP.js:92
throw err;
^
Unsupported PrimOp: copyArray#