haste-compiler icon indicating copy to clipboard operation
haste-compiler copied to clipboard

Patched reactive-banana produces "Unsupported PrimOp"

Open pkamenarsky opened this issue 10 years ago • 0 comments

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#

pkamenarsky avatar Jun 13 '14 12:06 pkamenarsky