Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 5fbb496d4f | |||
| 946a9c4c2e | |||
| ed294647cf | |||
| d613b31367 | |||
| c8c7096812 | |||
| 128525168a |
@@ -1,3 +1,42 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 26 18:36:18 UTC 2025 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update vector to version 0.13.2.0 revision 2.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 5 23:13:03 UTC 2025 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update vector to version 0.13.2.0 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 31 18:01:59 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update vector to version 0.13.2.0.
|
||||
# Changes in version 0.13.2.0
|
||||
|
||||
* Strict boxed vector `Data.Vector.Strict` and `Data.Vector.Strict.Mutable` is
|
||||
added (#488). it ensures that all values in the vector are evaluated to WHNF.
|
||||
* `DoNotUnboxStrict`, `DoNotUnboxLazy`, and `DoNotUnboxNormalForm` wrapper are
|
||||
added for defining unbox instances for types that contain not unboxable fields.
|
||||
[#503](https://github.com/haskell/vector/issues/506),
|
||||
[#508](https://github.com/haskell/vector/pull/508)
|
||||
* `spanR` and `breakR` were added [#476](https://github.com/haskell/vector/pull/476).
|
||||
They allow parsing vector from the right.
|
||||
* We had some improvements on `*.Mutable.{next,prev}Permutation{,By}`
|
||||
[#498](https://github.com/haskell/vector/pull/498):
|
||||
* Add `*.Mutable.prevPermutation{,By}` and `*.Mutable.nextPermutationBy`
|
||||
* Improve time performance. We may now expect good specialization supported by inlining.
|
||||
The implementation has also been algorithmically updated: in the previous implementation
|
||||
the full enumeration of all the permutations of `[1..n]` took Omega(n*n!), but it now takes O(n!).
|
||||
* Add tests for `{next,prev}Permutation`
|
||||
* Add benchmarks for `{next,prev}Permutation`
|
||||
* Cabal >= 3.0 is now required for building package (#481).
|
||||
* `vector:benchmarks-O2` public sublibrary containing benchmarks is added (#481).
|
||||
* Type family `Mutable` provides instances for arrays from `primitive`.
|
||||
* Various documentation improvements.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 19 17:27:17 UTC 2024 - Peter Simons <psimons@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ghc-vector
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -20,7 +20,7 @@
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
%bcond_with tests
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.13.1.0
|
||||
Version: 0.13.2.0
|
||||
Release: 0
|
||||
Summary: Efficient Arrays
|
||||
License: BSD-3-Clause
|
||||
@@ -34,27 +34,25 @@ BuildRequires: ghc-deepseq-devel
|
||||
BuildRequires: ghc-deepseq-prof
|
||||
BuildRequires: ghc-primitive-devel
|
||||
BuildRequires: ghc-primitive-prof
|
||||
BuildRequires: ghc-random-devel
|
||||
BuildRequires: ghc-random-prof
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-tasty-devel
|
||||
BuildRequires: ghc-tasty-prof
|
||||
BuildRequires: ghc-vector-stream-devel
|
||||
BuildRequires: ghc-vector-stream-prof
|
||||
ExcludeArch: %{ix86}
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-HUnit-devel
|
||||
BuildRequires: ghc-HUnit-prof
|
||||
BuildRequires: ghc-QuickCheck-devel
|
||||
BuildRequires: ghc-QuickCheck-prof
|
||||
BuildRequires: ghc-base-orphans-devel
|
||||
BuildRequires: ghc-base-orphans-prof
|
||||
BuildRequires: ghc-doctest-devel
|
||||
BuildRequires: ghc-doctest-prof
|
||||
BuildRequires: ghc-random-devel
|
||||
BuildRequires: ghc-random-prof
|
||||
BuildRequires: ghc-tasty-devel
|
||||
BuildRequires: ghc-tasty-hunit-devel
|
||||
BuildRequires: ghc-tasty-hunit-prof
|
||||
BuildRequires: ghc-tasty-inspection-testing-devel
|
||||
BuildRequires: ghc-tasty-inspection-testing-prof
|
||||
BuildRequires: ghc-tasty-prof
|
||||
BuildRequires: ghc-tasty-quickcheck-devel
|
||||
BuildRequires: ghc-tasty-quickcheck-prof
|
||||
BuildRequires: ghc-template-haskell-devel
|
||||
@@ -64,26 +62,15 @@ BuildRequires: ghc-transformers-prof
|
||||
%endif
|
||||
|
||||
%description
|
||||
An efficient implementation of 'Int'-indexed arrays (both mutable and
|
||||
immutable), with a powerful loop optimisation framework .
|
||||
|
||||
It is structured as follows:
|
||||
|
||||
["Data.Vector"] Boxed vectors of arbitrary types.
|
||||
|
||||
. An efficient implementation of 'Int'-indexed arrays (both mutable and
|
||||
immutable), with a powerful loop optimisation framework . . It is structured as
|
||||
follows: . ["Data.Vector"] Boxed vectors of arbitrary types. .
|
||||
["Data.Vector.Unboxed"] Unboxed vectors with an adaptive representation based
|
||||
on data type families.
|
||||
|
||||
["Data.Vector.Storable"] Unboxed vectors of 'Storable' types.
|
||||
|
||||
["Data.Vector.Primitive"] Unboxed vectors of primitive types as defined by the
|
||||
'primitive' package. "Data.Vector.Unboxed" is more flexible at no performance
|
||||
cost.
|
||||
|
||||
["Data.Vector.Generic"] Generic interface to the vector types.
|
||||
|
||||
There is also a (draft) tutorial on common uses of vector.
|
||||
|
||||
on data type families. . ["Data.Vector.Storable"] Unboxed vectors of 'Storable'
|
||||
types. . ["Data.Vector.Primitive"] Unboxed vectors of primitive types as
|
||||
defined by the 'primitive' package. "Data.Vector.Unboxed" is more flexible at
|
||||
no performance cost. . ["Data.Vector.Generic"] Generic interface to the vector
|
||||
types. . There is also a (draft) tutorial on common uses of vector. .
|
||||
* <http://haskell.org/haskellwiki/Numeric_Haskell:_A_Vector_Tutorial>.
|
||||
|
||||
%package devel
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:63f272279eab8ab9411a0fffb1252ac309b297313f8e33be9ebbc2f981edecee
|
||||
size 156855
|
||||
3
vector-0.13.2.0.tar.gz
Normal file
3
vector-0.13.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:28f203c786cbf8ac6dc3fea3378ec36f34173d505fb4a1dd60fc8418ad91c423
|
||||
size 185739
|
||||
234
vector.cabal
234
vector.cabal
@@ -1,8 +1,10 @@
|
||||
Cabal-Version: 3.0
|
||||
Build-Type: Simple
|
||||
Name: vector
|
||||
Version: 0.13.1.0
|
||||
Version: 0.13.2.0
|
||||
x-revision: 2
|
||||
-- don't forget to update the changelog file!
|
||||
License: BSD3
|
||||
License: BSD-3-Clause
|
||||
License-File: LICENSE
|
||||
Author: Roman Leshchinskiy <rl@cse.unsw.edu.au>
|
||||
Maintainer: Haskell Libraries Team <libraries@haskell.org>
|
||||
@@ -55,19 +57,19 @@ Tested-With:
|
||||
GHC == 9.6.4
|
||||
GHC == 9.8.2
|
||||
|
||||
|
||||
Cabal-Version: >= 1.10
|
||||
Build-Type: Simple
|
||||
|
||||
Extra-Source-Files:
|
||||
Extra-doc-files:
|
||||
changelog.md
|
||||
README.md
|
||||
tests/LICENSE
|
||||
tests/Setup.hs
|
||||
tests/Main.hs
|
||||
Extra-Source-Files:
|
||||
internal/GenUnboxTuple.hs
|
||||
internal/unbox-tuple-instances
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/haskell/vector.git
|
||||
subdir: vector
|
||||
|
||||
Flag BoundsChecks
|
||||
Description: Enable bounds checking
|
||||
Default: True
|
||||
@@ -90,8 +92,17 @@ Flag Wall
|
||||
Default: False
|
||||
Manual: True
|
||||
|
||||
-- This common sets warning flags passed to GHC as controlled by Wall cabal flag
|
||||
common flag-Wall
|
||||
Ghc-Options: -Wall
|
||||
if !flag(Wall)
|
||||
Ghc-Options: -fno-warn-orphans
|
||||
if impl(ghc >= 8.0) && impl(ghc < 8.1)
|
||||
Ghc-Options: -Wno-redundant-constraints
|
||||
|
||||
|
||||
Library
|
||||
import: flag-Wall
|
||||
Default-Language: Haskell2010
|
||||
Other-Extensions:
|
||||
BangPatterns
|
||||
@@ -135,6 +146,9 @@ Library
|
||||
Data.Vector.Unboxed.Mutable
|
||||
Data.Vector.Unboxed
|
||||
|
||||
Data.Vector.Strict.Mutable
|
||||
Data.Vector.Strict
|
||||
|
||||
Data.Vector.Mutable
|
||||
Data.Vector
|
||||
|
||||
@@ -147,18 +161,12 @@ Library
|
||||
Install-Includes:
|
||||
vector.h
|
||||
|
||||
Build-Depends: base >= 4.9 && < 4.22
|
||||
Build-Depends: base >= 4.9 && < 4.23
|
||||
, primitive >= 0.6.4.0 && < 0.10
|
||||
, deepseq >= 1.1 && < 1.6
|
||||
, vector-stream >= 0.1 && < 0.2
|
||||
|
||||
Ghc-Options: -O2 -Wall
|
||||
|
||||
if !flag(Wall)
|
||||
Ghc-Options: -fno-warn-orphans
|
||||
|
||||
if impl(ghc >= 8.0) && impl(ghc < 8.1)
|
||||
Ghc-Options: -Wno-redundant-constraints
|
||||
Ghc-Options: -O2
|
||||
|
||||
if flag(BoundsChecks)
|
||||
cpp-options: -DVECTOR_BOUNDS_CHECKS
|
||||
@@ -169,125 +177,82 @@ Library
|
||||
if flag(InternalChecks)
|
||||
cpp-options: -DVECTOR_INTERNAL_CHECKS
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/haskell/vector.git
|
||||
subdir: vector
|
||||
|
||||
-- We want to build test suite in two variants. One built with -O0
|
||||
-- and another with -O2 in order to catch bugs caused by invalid
|
||||
-- rewrite rules
|
||||
common tests-common
|
||||
Default-Language: Haskell2010
|
||||
Ghc-Options: -fno-warn-missing-signatures
|
||||
hs-source-dirs: tests
|
||||
Build-Depends: base >= 4.5 && < 5
|
||||
, template-haskell
|
||||
, base-orphans >= 0.6
|
||||
, vector
|
||||
, primitive
|
||||
, random
|
||||
, QuickCheck >= 2.9 && < 2.16
|
||||
, tasty
|
||||
, tasty-hunit
|
||||
, tasty-quickcheck
|
||||
, transformers >= 0.2.0.0
|
||||
Other-Modules:
|
||||
Boilerplater
|
||||
Tests.Bundle
|
||||
Tests.Move
|
||||
Tests.Vector.Property
|
||||
Tests.Vector.Boxed
|
||||
Tests.Vector.Strict
|
||||
Tests.Vector.Storable
|
||||
Tests.Vector.Primitive
|
||||
Tests.Vector.Unboxed
|
||||
Tests.Vector.UnitTests
|
||||
Utilities
|
||||
|
||||
default-extensions:
|
||||
ScopedTypeVariables,
|
||||
PatternGuards,
|
||||
MultiParamTypeClasses,
|
||||
FlexibleContexts,
|
||||
RankNTypes,
|
||||
TypeSynonymInstances,
|
||||
TypeFamilies,
|
||||
TemplateHaskell
|
||||
|
||||
test-suite vector-tests-O0
|
||||
Default-Language: Haskell2010
|
||||
type: exitcode-stdio-1.0
|
||||
Main-Is: Main.hs
|
||||
|
||||
other-modules: Boilerplater
|
||||
Tests.Bundle
|
||||
Tests.Move
|
||||
Tests.Vector
|
||||
Tests.Vector.Property
|
||||
Tests.Vector.Boxed
|
||||
Tests.Vector.Storable
|
||||
Tests.Vector.Primitive
|
||||
Tests.Vector.Unboxed
|
||||
Tests.Vector.UnitTests
|
||||
Utilities
|
||||
|
||||
hs-source-dirs: tests
|
||||
Build-Depends: base >= 4.5 && < 5, template-haskell, base-orphans >= 0.6, vector,
|
||||
primitive, random,
|
||||
QuickCheck >= 2.9 && < 2.15, HUnit, tasty,
|
||||
tasty-hunit, tasty-quickcheck,
|
||||
transformers >= 0.2.0.0
|
||||
|
||||
default-extensions: CPP,
|
||||
ScopedTypeVariables,
|
||||
PatternGuards,
|
||||
MultiParamTypeClasses,
|
||||
FlexibleContexts,
|
||||
RankNTypes,
|
||||
TypeSynonymInstances,
|
||||
TypeFamilies,
|
||||
TemplateHaskell
|
||||
|
||||
Ghc-Options: -O0 -threaded
|
||||
Ghc-Options: -Wall
|
||||
|
||||
if !flag(Wall)
|
||||
Ghc-Options: -fno-warn-orphans -fno-warn-missing-signatures
|
||||
if impl(ghc >= 8.0) && impl(ghc < 8.1)
|
||||
Ghc-Options: -Wno-redundant-constraints
|
||||
|
||||
import: flag-Wall, tests-common
|
||||
type: exitcode-stdio-1.0
|
||||
Main-Is: Main.hs
|
||||
Ghc-Options: -O0 -threaded
|
||||
|
||||
test-suite vector-tests-O2
|
||||
Default-Language: Haskell2010
|
||||
type: exitcode-stdio-1.0
|
||||
Main-Is: Main.hs
|
||||
|
||||
other-modules: Boilerplater
|
||||
Tests.Bundle
|
||||
Tests.Move
|
||||
Tests.Vector
|
||||
Tests.Vector.Property
|
||||
Tests.Vector.Boxed
|
||||
Tests.Vector.Storable
|
||||
Tests.Vector.Primitive
|
||||
Tests.Vector.Unboxed
|
||||
Tests.Vector.UnitTests
|
||||
Utilities
|
||||
|
||||
hs-source-dirs: tests
|
||||
Build-Depends: base >= 4.5 && < 5, template-haskell, base-orphans >= 0.6, vector,
|
||||
primitive, random,
|
||||
QuickCheck >= 2.9 && < 2.15, HUnit, tasty,
|
||||
tasty-hunit, tasty-quickcheck,
|
||||
transformers >= 0.2.0.0
|
||||
|
||||
default-extensions: CPP,
|
||||
ScopedTypeVariables,
|
||||
PatternGuards,
|
||||
MultiParamTypeClasses,
|
||||
FlexibleContexts,
|
||||
RankNTypes,
|
||||
TypeSynonymInstances,
|
||||
TypeFamilies,
|
||||
TemplateHaskell
|
||||
|
||||
Ghc-Options: -Wall
|
||||
Ghc-Options: -O2 -threaded
|
||||
if !flag(Wall)
|
||||
Ghc-Options: -fno-warn-orphans -fno-warn-missing-signatures
|
||||
if impl(ghc >= 8.0) && impl(ghc < 8.1)
|
||||
Ghc-Options: -Wno-redundant-constraints
|
||||
import: flag-Wall, tests-common
|
||||
type: exitcode-stdio-1.0
|
||||
Main-Is: Main.hs
|
||||
Ghc-Options: -O2 -threaded
|
||||
|
||||
test-suite vector-doctest
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: doctests.hs
|
||||
hs-source-dirs: tests
|
||||
default-language: Haskell2010
|
||||
-- Older GHC don't support DerivingVia
|
||||
-- Older GHC don't support DerivingVia and doctests use them
|
||||
if impl(ghc < 8.6)
|
||||
buildable: False
|
||||
-- GHC 8.10 fails to run doctests for some reason
|
||||
if impl(ghc >= 8.10) && impl(ghc < 8.11)
|
||||
-- Attempts to run doctests on macos on GHC8.10 and 9.0 cause linker errors:
|
||||
-- > ld: warning: -undefined dynamic_lookup may not work with chained fixups
|
||||
if os(darwin) && impl(ghc >= 8.10) && impl(ghc < 9.2)
|
||||
buildable: False
|
||||
-- GHC 9.0 fails to run doctests for some reason too
|
||||
if impl(ghc >= 9.0) && impl(ghc < 9.1)
|
||||
buildable: False
|
||||
-- And GHC 9.2 too
|
||||
if impl(ghc >= 9.2) && impl(ghc < 9.2.3)
|
||||
buildable: False
|
||||
if impl(ghc >= 9.2.3) && impl(ghc < 9.3)
|
||||
buildable: True
|
||||
build-depends:
|
||||
base -any
|
||||
, doctest >=0.15 && <0.23
|
||||
, doctest >=0.15 && <0.25
|
||||
, primitive >= 0.6.4.0 && < 0.10
|
||||
, vector -any
|
||||
|
||||
test-suite vector-inspection
|
||||
import: flag-Wall
|
||||
type: exitcode-stdio-1.0
|
||||
hs-source-dirs: tests-inspect
|
||||
Ghc-Options: -Wall
|
||||
main-is: main.hs
|
||||
default-language: Haskell2010
|
||||
Other-modules: Inspect
|
||||
@@ -301,6 +266,32 @@ test-suite vector-inspection
|
||||
, tasty
|
||||
, tasty-inspection-testing >= 0.1
|
||||
|
||||
library benchmarks-O2
|
||||
visibility: public
|
||||
ghc-options: -O2
|
||||
hs-source-dirs: benchlib
|
||||
Default-Language: Haskell2010
|
||||
build-depends:
|
||||
base
|
||||
, random >= 1.2
|
||||
, tasty
|
||||
, vector
|
||||
exposed-modules:
|
||||
Bench.Vector.Algo.MutableSet
|
||||
Bench.Vector.Algo.ListRank
|
||||
Bench.Vector.Algo.Rootfix
|
||||
Bench.Vector.Algo.Leaffix
|
||||
Bench.Vector.Algo.AwShCC
|
||||
Bench.Vector.Algo.HybCC
|
||||
Bench.Vector.Algo.Quickhull
|
||||
Bench.Vector.Algo.Spectral
|
||||
Bench.Vector.Algo.Tridiag
|
||||
Bench.Vector.Algo.FindIndexR
|
||||
Bench.Vector.Algo.NextPermutation
|
||||
Bench.Vector.TestData.ParenTree
|
||||
Bench.Vector.TestData.Graph
|
||||
Bench.Vector.Tasty
|
||||
|
||||
benchmark algorithms
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: Main.hs
|
||||
@@ -313,19 +304,6 @@ benchmark algorithms
|
||||
, tasty
|
||||
, tasty-bench >= 0.2.1
|
||||
, vector
|
||||
, vector:benchmarks-O2
|
||||
|
||||
ghc-options: -O2
|
||||
|
||||
other-modules:
|
||||
Algo.MutableSet
|
||||
Algo.ListRank
|
||||
Algo.Rootfix
|
||||
Algo.Leaffix
|
||||
Algo.AwShCC
|
||||
Algo.HybCC
|
||||
Algo.Quickhull
|
||||
Algo.Spectral
|
||||
Algo.Tridiag
|
||||
Algo.FindIndexR
|
||||
TestData.ParenTree
|
||||
TestData.Graph
|
||||
|
||||
Reference in New Issue
Block a user