Skip to content

A peer-to-peer stack for code collaboration

Fix issue with client impure primops.

Julian Arni4730a52b1e9e
diff --git a/exe/Server/Client.hs b/exe/Server/Client.hs
index 0c81fd1..c9e7b07 100644
--- a/exe/Server/Client.hs
+++ b/exe/Server/Client.hs
@@ -67,10 +67,10 @@ bindings :: ClientEnv -> Bindings (PrimFns (InputT IO))
bindings cEnv = e { bindingsPrimFns = bindingsPrimFns e <> primops cEnv }
where
e :: Bindings (PrimFns (InputT IO))
- e = pureEnv
+ e = replBindings
primops :: ClientEnv -> PrimFns (InputT IO)
-primops cEnv = PrimFns (fromList [sendPrimop, receivePrimop]) <> replPrimFns
+primops cEnv = PrimFns (fromList [sendPrimop, receivePrimop])
where
sendPrimop =
( unsafeToIdent "send!"