r/purescript • • Jul 04 '18

Experimental PHP Backend for the Purescript compiler

https://gitlab.com/purescript-php/purescript-php
3 Upvotes

7 comments sorted by

View all comments

Show parent comment

2

u/csicar Jul 07 '18

I did not know about that interface. Thanks for pointing that out! Except 2 or 3 exceptions every change I made is in the code generation, which means that using the corefn interface is most likely a viable option. Do you know how the FFI is handled?

3

u/natefaubion Jul 07 '18

I think that if you use the —codegen corefn flag, it will ignore FFI and only generate corefn files for PS modules. It would then be up to your backend to wire up the FFI.