Comments (7)
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.
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.
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.
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.
(There are too many extra-deps
to my taste, i'll try to minimize the dependencies in the future)
from packages.
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.
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:
- For you to try with
allow-newer: true
hoping packages would be compatible despite the constraints saying otherwise - For you to build with an older GHC, so that
base < 4.13
- For me to make the package compatible with
primitive
0.7.* which supportsbase
up to 4.14.*, either with a package revision or a new release - For me to remove the dependency on
primitive
with a new release (that's what I've done) - 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)
- Replace happstack-server with wai HOT 1
- No release for Excepts on hackage HOT 1
- haskus-utils-types build failures. HOT 1
- haskus-utils does not build with haskus-utils-variant-3.0 HOT 3
- Excepts ergonomics HOT 9
- MonadBaseControl instance? HOT 7
- Mutually recursive EADTs HOT 5
- Fails to build with GHC 9.2.1 HOT 2
- Unsoundness issues when using `forM` with `throwE` in `Excepts` HOT 2
- No Eq instance for Haskus.Utils.Variant.VEither HOT 3
- Fails to check doctests HOT 6
- haskus-utils-variant does not build with GHC-9.6 HOT 1
- docs subdomain dead ? HOT 2
- build on 9.2+ HOT 6
- Pattern synonyms do not support linear fields HOT 2
- System: use our own CPIO implementation
- Migrate and update old user manual HOT 1
- `hakus-utils-variant` fails to build with GHC-9.8 HOT 7
- Embed: use getPackageRoot
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 packages.