Giter Club home page Giter Club logo

Comments (7)

hsyl20 avatar hsyl20 commented on September 27, 2024 2

With the new release, you only need this stack.yaml:

# stack.yaml
resolver: lts-16.0

packages:
- .

extra-deps:
- haskus-binary-1.5
- haskus-utils-1.5
- haskus-utils-data-1.3
- haskus-utils-types-1.5
- haskus-utils-variant-3.0
- stm-containers-1.1.0.4
- stm-hamt-1.2.0.4
- primitive-extras-0.8
- primitive-unlifted-0.1.3.0

And this in your package.yaml:

# package.yaml
dependencies:
- base >= 4.7 && < 5
- haskus-binary == 1.5

from packages.

hsyl20 avatar hsyl20 commented on September 27, 2024

I think I'll make a new release on Hackage. I've removed the direct dependency on primitive package in master to avoid this issue with GHC > 8.6. In the meantime you can add a dependency on the latest version in your stack.yaml file:

extra-deps:
- git: https://github.com/haskus/packages.git
  commit: f490a4fb79960b282aed785a8a46ba6bc28df6a4
  subdirs:
     - haskus-binary
     - haskus-utils
     - haskus-utils-data

I'm so used to do this for my projects that depend on haskus-binary et al. that I forget to release on Hackage. Thanks for the report!

from packages.

hsyl20 avatar hsyl20 commented on September 27, 2024

I've just uploaded https://hackage.haskell.org/package/haskus-utils-data-1.3 and https://hackage.haskell.org/package/haskus-binary-1.5. Let me now if anything fails.

from packages.

senofsky avatar senofsky commented on September 27, 2024

Thank you so much for your assistance! Sorry for the delayed response.

I updated stack.yaml to include the extra-deps you mentioned. Additionally, I modified package.yaml:

dependencies:                                                                                           
- base >= 4.9 && < 5                                                                                    
- haskus-binary == 1.5   

After executing stack build, I'm advised to add additional entries into extra-deps:

extra-deps:                                                                                             
- git: https://github.com/haskus/packages.git                                                           
  commit: f490a4fb79960b282aed785a8a46ba6bc28df6a4                                                      
  subdirs:                                                                                              
           - haskus-binary                                                                                    
           - haskus-utils                                                                                     
           - haskus-utils-data                                                                                
- haskus-utils-types-1.5@sha256:8f5ddbe1cd1c654e5cfaa6da1f12bd8d71e2d41216475d1a0dfd5590e5e68b1c,1294    
- haskus-utils-variant-3.0@sha256:8d51e45d3b664e61ccc25a58b37c0ccc4ee7537138b9fee21cd15c356906dd34,2159

However, stack build now fails with:

ยป stack build

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for MIL-STD-1553C-Simulator-0.1.0.0:
    haskus-binary-1.4 from stack configuration does not match ==1.5 
needed since MIL-STD-1553C-Simulator is a build target.

Some different approaches to resolving this:

  * Set 'allow-newer: true' in /home/senofsky/.stack/config.yaml to ignore all version constraints and build anyway.


Plan construction failed.

I would prefer to not set allow-newer: true. Would you have any recommendations for this?

Thanks again, I'll try to be more swift in my reply.

from packages.

hsyl20 avatar hsyl20 commented on September 27, 2024

(There are too many extra-deps to my taste, i'll try to minimize the dependencies in the future)

from packages.

senofsky avatar senofsky commented on September 27, 2024

That worked! Thank you for your help and for maintaining this repo!

I do have one more question:

What could I have done to figure out how to install this package without your help?

I found this package via hackage and I looked through some of the docs on docs.haskus.org but I could not determine the correct installation steps.

from packages.

hsyl20 avatar hsyl20 commented on September 27, 2024

What could I have done to figure out how to install this package without your help?

Before the new 1.5 release you couldn't install it with your version of GHC because of the dependency on primitive == 0.6.*. In your log above:

In the dependencies for primitive-0.6.4.0:
    base-4.13.0.0 from stack configuration does not match >=4.5 && <4.13  (latest matching version is 4.12.0.0)
needed due to MIL-STD-1553C-Simulator-0.1.0.0 -> primitive-0.6.4.0

(base version is fixed for a GHC version, as the last Stack message says)

The alternatives to fix this were:

  1. For you to try with allow-newer: true hoping packages would be compatible despite the constraints saying otherwise
  2. For you to build with an older GHC, so that base < 4.13
  3. For me to make the package compatible with primitive 0.7.* which supports base up to 4.14.*, either with a package revision or a new release
  4. For me to remove the dependency on primitive with a new release (that's what I've done)
  5. For you to use the unreleased version from git (what I've suggested above as a temporary workaround)

So the best way to fix this was to open an issue here :)

from packages.

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.