pure-c/purec

Figure out how to find FFI files

Closed this issue · 1 comments

Currently the compilation goes from some sources into purs -g corefn -o <output-dir>, which will spit them into <output-dir>. We then iterate over the corefn.json files found in <output-dir>, but those files give no hint back to where they originated from, making it necessary to remember their origin somehow.

The CoreFn module type has a modulePath property which points to the source .purs file on disk.