Comments (8)
Sorry, I should have specified in the docs that only the packages from the https://github.com/pure11 repos are guaranteed to work. The others (from the purescript or other repos) are changing at their own pace right now (since pure11 isn't officially part of purescript). Also, purescript-function
was missing from the list, so I just added it now.
from purescript-native.
Adding purescript-functions
changed error from "unknown module Data.Function" to "unknown module Data.Functor". I've added all remainding "functor" packages: functor-products, functor-coproducts and still the same. Here's the new error for reference:
Compiling Data.Function
Compiling Data.Profunctor
Compiling Data.Validation.Semigroup
Compiling Data.Bifunctor
Compiling Data.Profunctor.Closed
Compiling Data.Monoid
Compiling Data.Functor.Invariant
Compiling Control.Lazy
Compiling Control.Extend
Compiling Control.Alt
Error 1 of 6:
in module Data.Functor.Invariant
at packages/purescript-invariant/src/Data/Functor/Invariant.purs line 4, column 1 - line 15, column 1
Unknown module Data.Functor
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownModule for more information,
or to contribute content related to this error.
Error 2 of 6:
in module Data.Monoid
at packages/purescript-monoid/src/Data/Monoid.purs line 7, column 1 - line 8, column 1
Unknown module Data.Semigroup
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownModule for more information,
or to contribute content related to this error.
Error 3 of 6:
in module Data.Bifunctor
at packages/purescript-bifunctors/src/Data/Bifunctor.purs line 3, column 1 - line 18, column 1
Unknown module Control.Category
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownModule for more information,
or to contribute content related to this error.
Error 4 of 6:
in module Control.Lazy
at packages/purescript-control/src/Control/Lazy.purs line 3, column 1 - line 10, column 1
Unknown module Data.Unit
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownModule for more information,
or to contribute content related to this error.
Error 5 of 6:
in module Control.Extend
at packages/purescript-control/src/Control/Extend.purs line 9, column 1 - line 11, column 1
Unknown module Control.Category
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownModule for more information,
or to contribute content related to this error.
Error 6 of 6:
in module Control.Alt
at packages/purescript-control/src/Control/Alt.purs line 6, column 1 - line 7, column 1
Unknown module Data.Functor
from purescript-native.
Unfortunately, adding more non-pure11 packages to your project will only make it worse. If you just want to try the basics (like the fib.purs
sample), try using only these packages (from the pure11 repos):
- purescript-eff
- purescript-prelude
- purescript-assert
- purescript-st
- purescript-console
- purescript-functions
from purescript-native.
Ok, with only above packages, it compiles. So at this project's current state, must the user manually add and remove dependencies? If so, it will make it an unmanageable dev environment.
Also, say if dependencies are fixed so it's auto managed or no longer errors, the following simple print of concat array errored for me after adding -arrays and -maybe packages from pure11:
module Main where
import Prelude
import Data.Array
import Control.Monad.Eff.Console
main = do
print (concat [[1, 2, 3], [4, 5], [6]])
Error message:
Compiling Prelude
Compiling Control.Lazy
Compiling Control.Extend
Compiling Control.Alt
Compiling Control.Monad.Eff
Compiling Data.Function
Compiling Control.Monad.Eff.Class
Compiling Control.Monad.Eff.Console
Compiling Control.Monad.Eff.Console.Unsafe
Compiling Control.Monad.Eff.Unsafe
Compiling Control.Monad.ST
Compiling Data.Array.ST
Error 1 of 4:
in module Data.Array.ST
at packages/purescript-arrays/src/Data/Array/ST.purs line 22, column 1 - line 31, column 1
Unknown module Data.Maybe
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownModule for more information,
or to contribute content related to this error.
Error 2 of 4:
in module Control.Lazy
at packages/purescript-control/src/Control/Lazy.purs line 3, column 1 - line 10, column 1
Unknown module Data.Unit
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownModule for more information,
or to contribute content related to this error.
Error 3 of 4:
in module Control.Extend
at packages/purescript-control/src/Control/Extend.purs line 9, column 1 - line 11, column 1
Unknown module Control.Category
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownModule for more information,
or to contribute content related to this error.
Error 4 of 4:
in module Control.Alt
at packages/purescript-control/src/Control/Alt.purs line 6, column 1 - line 7, column 1
Unknown module Data.Functor
See https://github.com/purescript/purescript/wiki/Error-Code-UnknownModule for more information,
or to contribute content related to this error.
from purescript-native.
The goal is certainly to do much better than that for the end-user -- eventually the same facilities as regular PureScript. It's just not there yet; this backend is still experimental, and there were major breaking changes in PureScript 0.9 that it still needs to catch up to. Also, the pure11-specific packages should go away altogether once the baseline has its FFI portions merged into it.
from purescript-native.
Got it. Thank you so much for your help and pushing this project forward.
from purescript-native.
Thanks for checking it out!
from purescript-native.
The packages listed on the wiki are valid again (https://github.com/andyarvanitis/pure11/wiki/Packages), so closing this issue now.
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 3
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.