Giter VIP home page Giter VIP logo

Comments (8)

andyarvanitis avatar andyarvanitis commented on June 24, 2024

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.

mationai avatar mationai commented on June 24, 2024

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.

andyarvanitis avatar andyarvanitis commented on June 24, 2024

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.

mationai avatar mationai commented on June 24, 2024

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.

andyarvanitis avatar andyarvanitis commented on June 24, 2024

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.

mationai avatar mationai commented on June 24, 2024

Got it. Thank you so much for your help and pushing this project forward.

from purescript-native.

andyarvanitis avatar andyarvanitis commented on June 24, 2024

Thanks for checking it out!

from purescript-native.

andyarvanitis avatar andyarvanitis commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.