You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aside; I've also tried creating a minimal repro case with nix like this:
#!/usr/bin/env nix-shell
#! nix-shell -p "haskell.packages.ghc822.ghcWithPackages (p: with p; with haskell.lib; [(doJailbreak (dontCheck jsaddle-warp))])"
#! nix-shell -i "runghc"
{-# language OverloadedStrings #-}
importControl.Monad.IO.ClassimportLanguage.Javascript.JSaddle.WarpimportLanguage.Javascript.JSaddleimportLanguage.Javascript.JSaddle.DebugimportControl.ConcurrentimportControl.MonadimportData.TextimportControl.Concurrent.MVar
main = run 3197$do
result <- liftIO newEmptyMVar
deRefVal $ call (eval "(function(f) {f('Hello');})") global [fun $\ _ _ [arg1] ->do
valToText arg1 >>= (liftIO . putMVar result)
]
liftIO $ takeMVar result
But I've run into the following likely unrelated issue:
Configuring jsaddle-warp-0.9.5.0...CallStack (from HasCallStack):
die', called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:948:20inCabal-2.0.1.0:Distribution.Simple.Configure
configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:470:12inCabal-2.0.1.0:Distribution.Simple.Configure
configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:570:20inCabal-2.0.1.0:Distribution.Simple
confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:67:5inCabal-2.0.1.0:Distribution.Simple.UserHooks
configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:174:19inCabal-2.0.1.0:Distribution.Simple
defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:119:27inCabal-2.0.1.0:Distribution.Simple
defaultMain, called at Setup.lhs:5:10in main:MainSetup:Encountered missing dependencies:
websockets >=0.9.5.0&&<0.11
builder for ‘/nix/store/76y9xrhvb0hmq2s46qzsvqv1131z13yh-jsaddle-warp-0.9.5.0.drv’ failed with exit code 1
killing process 105483
I've updated the repro case a bit to get jsaddle too from the same GH commit; new commits will
be visible in this view: Wizek/jsaddle3@967b32~2...master
I've been trying to use the
fun
andfunction
functions from here: https://hackage.haskell.org/package/jsaddle-0.9.4.0/docs/Language-Javascript-JSaddle-Object.html#v:funAnd I've ran into exceptions like this:
Here is a reproducible minimal example from the docs: Wizek/jsaddle3@967b32~2...967b32
A bit of background:
The text was updated successfully, but these errors were encountered: