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

Purs .10 #33

Open
michaelatkins opened this issue Dec 6, 2016 · 5 comments
Open

Purs .10 #33

michaelatkins opened this issue Dec 6, 2016 · 5 comments

Comments

@michaelatkins
Copy link

I realize I'm way too late to the game, but I'm hoping someone might be able to shed some light on one thing for me. I'm working to port the easy-peasy repo to .10, and I think I have everything solved except for this:

foreign import data GAME :: !

I'm not familiar enough with the syntax to actually know what to do with this, but the compiler complains about not being able to find the ffi for this.

I'll happily fork once it compiles in case anyone else wants to do this with the latest purescript.

@jdegoes
Copy link
Contributor

jdegoes commented Dec 6, 2016

Hmm, as far as I know nothing changed on this. What's the exact error message?

@michaelatkins
Copy link
Author

Thanks, John. First thank you for this course. You have made the path to fp really enjoyable.

Ok, error message is:

  • Building project in /Users/matkins/projects/lambdaconf-2016-usa/Easy-Peasy-Lemon-Squeezy
    Compiling Game.Driver
    Error found:

    The foreign module implementation for module Game.Driver is missing.

See https://github.com/purescript/purescript/wiki/Error-Code-MissingFFIModule for more information,
or to contribute content related to this error.

  • ERROR: Subcommand terminated with exit code 1

@michaelatkins
Copy link
Author

Note that I had to split the modules into multiple files (I think that's a purs .9+ restriction). I don't know if build order matters at all.

@michaelatkins
Copy link
Author

@jdegoes
Copy link
Contributor

jdegoes commented Dec 15, 2016

@michaelatkins You're welcome! Happy this has been useful.

If you submit a pull request with your fixes, I'm happy to merge in. Cheers!

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

No branches or pull requests

2 participants