Skip to content

purescript-ref doesn't compile due to foreign exports mismatching format #29

@Renegatto

Description

@Renegatto

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),

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions