pure-c / purec

C backend for PureScript
232 stars 8 forks source link

Figure out how to find FFI files #3

Closed felixSchl closed 6 years ago

felixSchl commented 6 years ago

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.

natefaubion commented 6 years ago

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