-
Notifications
You must be signed in to change notification settings - Fork 301
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
Consolidate "FFI" and "FFI tips" #56
Comments
What, like this? 😄 |
Agreed it should be more prominent / perhaps expanded though. |
Ah, sorry! I skimmed the document a few times and concluded that part wasn't documented but here it is... |
It's under "FFI Tips" rather than just "FFI" in the guides, we should probably consolidate them :) |
Oh nice! I didn't know that was documented. We need to improve the organization of this repo. |
oh, missed it again. Yeah it would definitely help to merge the two guides. |
There's also an FFI page under "language". I think we should try to put it all under the language one. |
It have been asked a few times on IRC:
Either String Int
from JS?"MyCustomDatatype
from JS?"Two solutions that were brought up were to:
Left
,Right
, MyCustomDatatypeConstructor`, etc.),String :: Maybe MyCustomDatatype
that will get a string version of that constructor and will decide which value to return based on that.It'd be great if that'd be documented in the FFI guide. :)
The text was updated successfully, but these errors were encountered: