On the one side it does expect that, on the other side it does not wrap their exports in the parentheses, violating it's own expectations.
[info] Build succeeded.
PS Lua: compiling ...
Linker error:
Error parsing foreign file "/home/user/purescript-lua-template/.spago/refs/v6.0.1/src/Effect/Ref.lua":
/home/user/purescript-lua-template/.spago/refs/v6.0.1/src/Effect/Ref.lua:2:10:
|
2 | _new = function(val) return function() return {value = val} end end,
| ^
unexpected 'f'
expecting '(' or white space
Wrapping value in the parentheses would indeed work:
_new = (function(val) return function() return {value = val} end end),
On the one side it does expect that, on the other side it does not wrap their exports in the parentheses, violating it's own expectations.
Wrapping value in the parentheses would indeed work: