I'm writing an alternative VimL backend for PureScript based on the CoreFn dump produced by --dump-corefn. That is, I haven't forked the compiler codebase. There are two things with the regular purs compile command that would be nice to disable:
- CommonJS module output
- Checking/inclusion of
<Module>.js files (foreign definitions)
Specifically the latter is of interest, as I don't want to write foreign definitions for Vim-specific things for the JS backend.
At a high level, this might be considered "disabling the entire JS backend", I'd say, so I'm not sure what would be a good name for a flag to disable it. Perhaps --no-codegen or --no-js-codegen. Anyway, I could have a stab at this and provide a PR if this seems reasonable.
Thanks!
I'm writing an alternative VimL backend for PureScript based on the CoreFn dump produced by
--dump-corefn. That is, I haven't forked the compiler codebase. There are two things with the regularpurs compilecommand that would be nice to disable:<Module>.jsfiles (foreign definitions)Specifically the latter is of interest, as I don't want to write foreign definitions for Vim-specific things for the JS backend.
At a high level, this might be considered "disabling the entire JS backend", I'd say, so I'm not sure what would be a good name for a flag to disable it. Perhaps
--no-codegenor--no-js-codegen. Anyway, I could have a stab at this and provide a PR if this seems reasonable.Thanks!