ghcjs / ghcjs-base

base library for GHCJS for JavaScript interaction and marshalling, used by higher level libraries like JSC
MIT License
45 stars 67 forks source link

`js-sources` is ignored on GHCJS REPL in ghcjs-base. #80

Closed crocket closed 7 years ago

crocket commented 7 years ago

Any ghcjs-base function that relies on a javascript function from js-sources in ghcjs-base.cabal fails to find the javascript function on GHCJS REPL in ghcjs-base.

> syncCallbackMulti ContinueAsync $ \_ -> putStrLn "ok"
uncaught exception in Haskell main thread: ReferenceError: h$makeCallbackMulti is not defined
ReferenceError: h$makeCallbackMulti is not defined
    at h$$mainZCGHCJSziForeignziCallback_7 (eval at h$loadCodeStr (/home/crocket/.ghcjs/x86_64-linux-0.2.0.9006021-7.10.3/ghcjs/irunner.js:185:8), <anonymous>:76424:11)
    at h$runThreadSlice (eval at h$loadCodeStr (/home/crocket/.ghcjs/x86_64-linux-0.2.0.9006021-7.10.3/ghcjs/irunner.js:185:8), <anonymous>:9867:11)
    at h$runThreadSliceCatch (eval at h$loadCodeStr (/home/crocket/.ghcjs/x86_64-linux-0.2.0.9006021-7.10.3/ghcjs/irunner.js:185:8), <anonymous>:9823:12)
    at Immediate.h$mainLoop [as _callback] (eval at h$loadCodeStr (/home/crocket/.ghcjs/x86_64-linux-0.2.0.9006021-7.10.3/ghcjs/irunner.js:185:8), <anonymous>:9818:9)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)