Commit Graph

4531 Commits

Author SHA1 Message Date
Harendra Kumar
bd8befb57d Remove mention of a bug that no longer exists 2024-01-18 23:36:54 +05:30
Harendra Kumar
63aae127c1 Make the array docs clearer
Use more efficient array transformation example
2024-01-18 23:36:54 +05:30
Adithya Kumar
944e248ed0 Update streamly-core 0.2.0-0.2.2 api changelog file 2024-01-18 16:30:21 +05:30
Harendra Kumar
fc61219450 Add INLINE pragma on some deprecated functions
On getIndices, flattenArrays etc.
2024-01-18 11:29:24 +05:30
Harendra Kumar
8e8159f156 Rename write* to create* in Array module
Export create/createOf from Array module
Rearrange exports in Array module
2024-01-18 11:29:01 +05:30
Harendra Kumar
b7d8b96728 Add pinned versions of compaction functions 2024-01-18 11:27:12 +05:30
Adithya Kumar
af57e26270 Rename asUnpinnedPtrUnsafe and deprecate asPtrUnsafe
asUnpinnedPtrUnsafe -> unsafeAsPtr
asPtrUnsafe -> unsafePinnedAsPtr
2024-01-18 00:53:37 +05:30
Adithya Kumar
6efb0875f9 Remove the MonadIO constraints on a few Array APIs
- concat
- concatRev
- interposeSuffix
2024-01-18 00:53:37 +05:30
Adithya Kumar
e6434d963a Add streamly-core API Changelog 2024-01-18 00:53:37 +05:30
Adithya Kumar
99b731ffb7 Fix the version of streamly-core in the deps of streamly 2024-01-18 00:53:37 +05:30
Adithya Kumar
bda24f0fe7 Prepare streamly-core for 0.2.2 release 2024-01-18 00:53:37 +05:30
Adithya Kumar
8e1ed02297 Prepare streamly for 0.10.1 release 2024-01-18 00:53:37 +05:30
Harendra Kumar
0f6bdbe4c9 Add some renaming suggestions in MutArray 2024-01-13 22:48:35 +05:30
Harendra Kumar
eac9294657 Rename write* to create* in Array/Generic module 2024-01-11 19:03:37 +05:30
Harendra Kumar
8927d11b6c Rename new/write in MutArray/Generic 2024-01-11 19:03:37 +05:30
Harendra Kumar
9654ce95ff Rename some array APIs in Array/MutArray/MutByteArray
Rename nil,new to empty,emptyOf
Rename writeAppend to append
Rename the write* APIs to create* in MutArray
2024-01-11 19:00:28 +05:30
Harendra Kumar
defafa678f Export the Path constructor and separator 2024-01-11 17:45:27 +05:30
Harendra Kumar
8eab0f07cd Add a comment about newRounded 2024-01-11 17:45:27 +05:30
Harendra Kumar
63f9adfbba Refactor splitAt, add unsafeSplitAt 2024-01-11 16:35:37 +05:30
Harendra Kumar
a290e6e6ec Add strict eval comments for fromBytes etc. 2024-01-11 16:32:34 +05:30
Harendra Kumar
8e6653491a Add commented show instance to Path type 2024-01-11 16:32:34 +05:30
Harendra Kumar
350b6acae2 Add serialization/deserialization using Unbox 2024-01-05 14:26:40 +05:30
Harendra Kumar
e135f9741f Refactor array compaction functions
Allocate the required amount in the beginning itself instead of checking in
the loop.

Use the size in terms of array elements.
2024-01-05 13:51:02 +05:30
Harendra Kumar
7a0f49b8d2 Rename "resize" to "grow"
As it never decreases the size.
2024-01-05 12:47:49 +05:30
Harendra Kumar
9d17f13977 Fix a bug in "resize"
With the bug it would always reallocate even if there is spare capacity
in the array.
2024-01-05 12:47:49 +05:30
Harendra Kumar
0833f534f5 Remove concatChunks, use Array.concat 2024-01-05 12:47:49 +05:30
Harendra Kumar
901c6eb775 Deprecate Array/Stream module, move parsing funcs to Array 2024-01-05 12:46:56 +05:30
Harendra Kumar
2ac457f746 Remove unnecessary liftIO, add some comments
Remove redundant let from spliceCopy.
2024-01-04 14:10:10 +05:30
Harendra Kumar
157c63ff7c Implement Array/Stream funcs in Array/MutArray
We will finally deprecate the Array/Stream module.
2024-01-04 10:06:26 +05:30
Harendra Kumar
c3b8dd41fb Rename concatChunks, compactChunks to concat, compact 2024-01-04 09:27:51 +05:30
Harendra Kumar
fa14d0e98a Update docs of concatChunksRev 2024-01-04 09:25:36 +05:30
Harendra Kumar
5274d3f1e3 Make the Eq instance doc clearer.
Avoid using byteCmp example, it may give an impression of how the
instance is defined.
2024-01-04 09:25:36 +05:30
Harendra Kumar
0ebc91ccab Fix docs of re-exported module appearing twice 2024-01-04 09:25:36 +05:30
Harendra Kumar
f4b1b1bdf1 Rename unfolds by convention in Array/MutArray 2024-01-04 09:25:36 +05:30
Harendra Kumar
11845277c7 Cleanup and make consistent the export lists of Array modules 2024-01-04 09:25:36 +05:30
Harendra Kumar
ffea484db8 Make changes for "reader" based impl of concatChunks 2024-01-04 09:12:53 +05:30
Harendra Kumar
2417874bed Deprecate MutArray/Stream module, move funcs to MutArray module
Move the mut array compaction funcs from MutArray.Stream to MutArray
module.
2024-01-04 09:03:24 +05:30
Harendra Kumar
0137a71772 Cleanup export section of streams of arrays in MutArray
Move cloning section
Move splicing section
Move slicing section
2024-01-04 08:27:51 +05:30
Harendra Kumar
894fd29906 Inline splitAt in MutArray and Array modules 2024-01-04 08:27:51 +05:30
Harendra Kumar
844da7dab8 Deprecate internal funcs toStreamD, toStreamDRev 2024-01-04 08:27:51 +05:30
Harendra Kumar
08e733d16d Stop exporting MutByteArray from MutArray module 2024-01-04 08:27:51 +05:30
Harendra Kumar
b19e108cb7 Move sliceOnSuffix to lower level Stream module 2024-01-04 08:27:51 +05:30
Harendra Kumar
8cdf6ede11 Move length and takeEndBy_ to lower level module 2024-01-04 08:27:51 +05:30
Harendra Kumar
471de5402d Move splitOn to lower level MutArray module 2024-01-04 08:27:51 +05:30
Harendra Kumar
89a019d252 Rename getIndicesD to getIndicesWith 2024-01-04 08:27:51 +05:30
Harendra Kumar
1ec583c74f Rename genSlicesFromLen in Array module 2024-01-04 08:27:51 +05:30
Harendra Kumar
6a5674002f Deprecate fromStreamD and fromStreamDN in Array 2024-01-04 08:27:51 +05:30
Harendra Kumar
023fe253b6 Deprecate internal funcs fromStreamD and fromStreamDN 2024-01-04 08:27:51 +05:30
Harendra Kumar
3519eaf820 Rename getSlicesUnfold to slicer 2024-01-04 08:27:51 +05:30
Harendra Kumar
6e37f26442 Rename fromArrayStreamK to fromChunksK
For consistency with other names.
2024-01-04 08:27:51 +05:30