Comments (8)
For some libraries (including Prelude), you need to use the version from the pure14 org. See this list.
Also, there's a sample Makefile that you can use for the PureScript -> C++ compilation.
Sorry, there's not much helpful documentation yet, as I've spent most of my time so far just working on the compiler itself. I hope to do it soon, but let me know if you run into anything else.
from purescript-native.
Oh, sorry, I just saw your modified bower file that's already pointing to the pure14 versions.
I also see that you got to the cmake stage. Are you sure it's using the right package?
from purescript-native.
To clarify: please make sure the right version of prelude got pulled in by bower. I don't really use bower right now, I just pull things in directly via git. The right version will have a Prelude.hh
file in the same directory as Prelude.js
.
from purescript-native.
Thanks for taking a look. You were right, bower was checking out the 0.1.0 tag of prelude which didn't have the Prelude.hh
. Fixed it. Not much of a bower user myself either.
I guess the only actual bug here is that pcc
doesn't report an error on the second try.
What compiler do you recommend by the way? I am now running into some C++ compilation issues (using gcc 4.9.2).
from purescript-native.
Ok cool. Definitely a recent version of clang, meaning 3.5.x or 3.6.x. I think 3.4.2 might be ok too, but earlier than that wants -std=c++1y
instead of -std=c++14
(I think it's fine other than that).
gcc 5.1
might also be ok, but I haven't tried it in a while, so something might not work anymore. If you try it and it does work, please let me know, though. I mostly work on a Mac, but with clang I've seen everything working fine on Linux and FreeBSD.
from purescript-native.
Clang 3.6.0 and gcc 5.1.0 are both working well for me for the hello world at least (I am on Ubuntu 14.04).
from purescript-native.
Great! In case you haven't seen it, this shows some of the things that are and are not currently working: https://github.com/andyarvanitis/pure14/blob/pure14-master/pcc/TestMain.hs
from purescript-native.
No longer applicable due to new approach.
from purescript-native.
Related Issues (20)
- ObjectUpdate seems to need deep copy HOT 2
- Cannot find ls/ls.h and rs/rs.h HOT 2
- Incorrect equality check in Data_Interval_Duration_Iso HOT 3
- Returning a constant from the ffi HOT 7
- "attribute 'haskell-nix' missing" when building with nix HOT 3
- error building purescript-dotlang HOT 16
- Support spago alternate entry point option
- ffi array type interop with opaque types HOT 7
- zero-fill shift right operator doesn't exist HOT 11
- pass arguments to run HOT 2
- stack nix integration HOT 1
- Problems with nix toolchain HOT 9
- Consider combining executables (and specify backend with switch) HOT 5
- un-gitignore cabal files HOT 2
- cpp binary size HOT 4
- Update to PureScript 0.14 HOT 5
- Webassembly / Emscripten with C++ HOT 1
- Upgrade to Latest PureScript Version
- Backend "psgo" exited with error:1 HOT 2
- go module initialization HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from purescript-native.