Commits on Source (58)
-
Ryan Scott authored
-
Ben Gamari authored
-
Ben Gamari authored
-
Vladislav Zavialov authored
-
Ben Gamari authored
-
Ben Gamari authored
As noted in #3, these were apparently released without ever making it into a commit. Thankfully changes are pretty harmless.
-
Ben Gamari authored
Release v0.5.4.0 Better late than never. Fixes #3.
-
Ben Gamari authored
-
-
Vladislav Zavialov authored
-
Moritz Angermann authored
-
Ben Gamari authored
-
John Ericson authored
In old GHC: I8# :: Int# -> Int8 indexInt8OffAddr# :: Addr# -> Int# -> Int# ... In upcoming GHC 9.2: I8# :: Int8# -> Int8 indexInt8OffAddr# :: Addr# -> Int# -> Int8# ... Both of those work with the last array release, where the only requirement is merely that the constructor and primops agree, i.e.: exists alpha. I8# :: alpha -> Int8 indexInt8OffAddr# :: Addr# -> Int# -> alpha In current GHC HEAD, we had I8# :: Int8# -> Int8 indexInt8OffAddr# :: Addr# -> Int# -> Int# and it was only because `Int8# /= Int#` that we needed the commit being reverted. we are about to fix the primops to match the constructors in accordance with the final 9.2 design, and so we don't need that commit anymore. This reverts commit c7a696e3.
-
Ben Gamari authored
-
Sylvain Henry authored
GHCJS uses the same representation for Addr# and StablePtr#, but not for Int#.
-
Ben Gamari authored
-
Ben Gamari authored
-
-
Francesco Gazzetta authored
-
-
-
Lei Zhu authored
-
-
-
konsumlamm authored
-
* Use unsafeNewArray_ instead of newAray_. We know we will fill the array, and newArray_ wastefully initializes it beforehand. * Avoid safeIndexing the range when writing the elements. range generates the elements in the required order, so we can simply use an Int counter.
-
Tommy Bidne authored
https://github.com/haskell/core-libraries-committee/issues/231 Also swap Trustworthy for Safe to placate -Wtrustworthy-safe in ghc tests.
-
Ben Gamari authored
-
Ben Gamari authored
-
Ben Gamari authored
-
Sylvain Henry authored
-
meooow authored
-
Lei Zhu authored
-
At the moment it is quite difficult to perform some folds on some arrays. * In general, arrays can be folded over by folding over the range of indices and then indexing into the array. This is a little cumbersome, and also inefficient when folding right-to-left because Ix does not offer reversed range generation. * Alternately, Array has a Foldable instance which works great, but UArray cannot be Foldable. Folds on UArray can instead be done via elems. Due to list fusion, this works out well for some folds (foldr, foldl'), but not others (foldr'). * For mutable arrays, there are no alternate ways to fold. This commit adds some commonly used folds for arrays and mutable arrays to improve this situation.
-
Lei Zhu authored
-
Lei Zhu authored
-
Lei Zhu authored
Building ci
-
Lei Zhu authored
-
Lei Zhu authored
Prepare release v0.5.8.0
-
Lei Zhu authored
-
Lei Zhu authored
Change upstream to GitHub
-
Rodrigo Mesquita authored
-
Lei Zhu authored
-
Rodrigo Mesquita authored
-
Ben Gamari authored
Update second test output for GHC!13301
-
Zubin authored
-
Lei Zhu authored
-
sheaf authored
These SPECIALISE pragmas don't actually do anything, and starting with GHC 9.14 cause a warning to be emitted. This commit simply removes them.
-
Lei Zhu authored
Data.Array.Base: remove useless SPECIALISE pragmas
-
Lei Zhu authored
Bump base bound to 4.21 for GHC 9.12
-
Ben Gamari authored
Allowing GHC 9.14.
-
Ben Gamari authored
Bump base upper bound to < 4.23
Showing
- .github/workflows/build.yml 25 additions, 0 deletions.github/workflows/build.yml
- Data/Array/Base.hs 278 additions, 54 deletionsData/Array/Base.hs
- Data/Array/IArray.hs 12 additions, 0 deletionsData/Array/IArray.hs
- Data/Array/IO.hs 1 addition, 1 deletionData/Array/IO.hs
- Data/Array/IO/Internals.hs 13 additions, 1 deletionData/Array/IO/Internals.hs
- Data/Array/IO/Safe.hs 1 addition, 1 deletionData/Array/IO/Safe.hs
- Data/Array/MArray.hs 12 additions, 1 deletionData/Array/MArray.hs
- Data/Array/MArray/Safe.hs 9 additions, 0 deletionsData/Array/MArray/Safe.hs
- Data/Array/ST.hs 1 addition, 1 deletionData/Array/ST.hs
- Data/Array/ST/Safe.hs 1 addition, 1 deletionData/Array/ST/Safe.hs
- Data/Array/Storable.hs 1 addition, 0 deletionsData/Array/Storable.hs
- Data/Array/Storable/Internals.hs 13 additions, 1 deletionData/Array/Storable/Internals.hs
- LICENSE 1 addition, 0 deletionsLICENSE
- Setup.hs 1 addition, 0 deletionsSetup.hs
- array.cabal 6 additions, 6 deletionsarray.cabal
- changelog.md 49 additions, 2 deletionschangelog.md
- tests/T229.hs 2 additions, 1 deletiontests/T229.hs
- tests/T229.stderr-ws-32 0 additions, 3 deletionstests/T229.stderr-ws-32
- tests/T229.stderr-ws-64 0 additions, 3 deletionstests/T229.stderr-ws-64
- tests/T229.stdout-ws-32 1 addition, 0 deletionstests/T229.stdout-ws-32
.github/workflows/build.yml
0 → 100644
tests/T229.stderr-ws-32
deleted
100644 → 0
tests/T229.stderr-ws-64
deleted
100644 → 0
tests/T229.stdout-ws-32
0 → 100644