Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print warnings when s.t. uses FFI but has no FFI file, or vice versa. #16

Merged
merged 2 commits into from
Oct 8, 2021

Conversation

jonascarpay
Copy link
Member

Fixes #7

This could be done in a much easier fashion by simply checking for FFI
declarations straight away in convert. However, I want to later be
able to perform other checks at later stages of the conversion process,
so I'm setting up some infrastructure for that as well. Specifically,
when checking whether strings contain interpolataions, we want to take
not of that so we can emit warnings later, but that's coming in a
separate PR.

This could be done in a much easier fashion by simply checking for FFI
declarations straight away in `convert`. However, I want to later be
able to perform other checks at later stages of the conversion process,
so I'm setting up some infrastructure for that as well. Specifically,
when checking whether strings contain interpolataions, we want to take
not of that so we can emit warnings later, but that's coming in a
separate PR.
@jonascarpay jonascarpay changed the title Print warnigns when s.t. uses FFI but has no FFI file, or vice versa. Print warnings when s.t. uses FFI but has no FFI file, or vice versa. Oct 7, 2021
src/Lib.hs Show resolved Hide resolved
@jonascarpay jonascarpay merged commit 302d4eb into main Oct 8, 2021
@jonascarpay jonascarpay deleted the jc/FFI-warnings branch October 8, 2021 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make sure that an FFI file exists if a PureScript module has foreign imports
2 participants