I’m trying to move over to ES6 modules but not getting things quite right and wanted someone’s help / pointers.
here is the PR I have so far: https://github.com/purescript/purescript/pull/3379
I have a couple of problems left to get it working (will probably need refactoring) the main one being:
In the compiled JS we now have exported values that match keywords being prefixed with $$
here or $prime
here I need to replicate that change in the body of files when using imported functions, ie the use would be Control_Coroutine["await"]
but it is exported as $$await
. I know where await
gets passed in here but I’m can’t seem to use properToJs
due to a type miss match Gen1
but need Text
.
Feels like this is going to be the wrong place to do this even if I could work out how to do it. Any tips on this would be greatly appreciated.