klangner / klangner/timeseries
Library needs update
- Dominant language
- Haskell
- Stars
- 8
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Trying to use this library in a project today, I am unable to resolve dependency issues due to the old versions of libraries this package currently relies on.
It's possible that my inexperience is the issue, but I have followed a similar course to [this stackoverflow question](https://stackoverflow.com/questions/61327636/category-extras-needed-but-the-stack-configuration-has-no-specified-version) and had a similar experience. Looks like the only option is to use an older version of GHC - 8.8.1 - but I got the same errors as for GHC 9.4.5 (LTS 21.2):
```PS C:\Users\Owen\baseline\baselineLoad> stack build
PS C:\Users\Owen\baseline\baselineLoad> stack build
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-8.8.1.
Already downloaded.
Already downloaded.
Decompressing ghc-8.8.1.tar.xz...
7-Zip 22.01 (x64) : Copyright (c) 1999-2022 Igor Pavlov : 2022-07-15
Scanning the drive for archives:
1 file, 395638616 bytes (378 MiB)
Extracting archive: C:\Users\Owen\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.1.tar.xz
--
Path = C:\Users\Owen\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.1.tar.xz
Type = xz
Physical Size = 395638616
Method = LZMA2:20 CRC64
Streams = 1
Blocks = 1
Everything is Ok
Size: 2551214080
Compressed: 395638616
Extracting ghc-8.8.1.tar...
Extracted total of 21 files from ghc-8.8.1.tar
GHC installed to C:\Users\Owen\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.1\
Error: [S-4804]
Stack failed to construct a build plan.
While constructing the build plan, Stack encountered the following errors:
In the dependencies for timeseries-0.4.1:
cassava must match >=0.4 && <0.5, but the Stack configuration has no specified version (latest matching
version is 0.4.5.1)
statistics must match <1, but the Stack configuration has no specified version (latest matching version is
0.16.2.0)
text-time must match <1, but the Stack configuration has no specified version (latest matching version is
0.3.2)
vector must match <0.12, but the Stack configuration has no specified version (latest matching version is
0.11.0.0)
needed due to baselineLoad-0.1.0.0 -> timeseries-0.4.1
PS C:\Users\Owen\baseline\baselineLoad>```
I have subsequently cloned this repository and edited the `timeseries.cabal` dependencies to:
``` build-depends:
base >= 4.7 && < 5,
bytestring >= 0.11,
cassava >= 0.4 && < 0.6,
statistics < 1,
text >= 2,
text-time < 1,
time >= 1.5 && < 2,
vector >= 0.12 && < 1
```
When I `stack build` on this (GHC-8.0.2) it is successful. I'll try some later versions and testing soon.
Please accept my apologies and gratitude in advance if this turns out to be a beginner "hold-my-hand" issue.
Update:
It appears part of the issue is that Timeseries is [not submitted to Stackage](https://hoogle.haskell.org/?hoogle=timeseries):

Contributor guide
No contributing guide indexed for this repository
Research direction
Start with timeseries.cabal and review the existing build-depends constraints alongside the reported Stack build failure for timeseries-0.4.1. Compare the dependency bounds shown in the issue, then run stack build with the relevant GHC versions. Done means the library builds successfully without the reported dependency-plan errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100