Commit Graph

4552 Commits

Author SHA1 Message Date
Harendra Kumar
931dbffa2b Remove unnecessary exceptions, just keep InvalidPath 2024-01-29 00:56:09 +05:30
Harendra Kumar
4e78607bf3 Add a PosixPath module 2024-01-29 00:56:09 +05:30
Harendra Kumar
53a875a53a Add FileSystem.Path.Posix module 2024-01-29 00:56:09 +05:30
Harendra Kumar
9e6400d85c Add FileSystem.Path.Common module 2024-01-29 00:56:09 +05:30
Harendra Kumar
087b473a32 Add some comments in FileSystem.Path module 2024-01-29 00:56:09 +05:30
Harendra Kumar
a20939d643 Add the Data.Path module 2024-01-29 00:56:09 +05:30
Harendra Kumar
ec8ebdf601 Check absolute path in append
Also add a few other utilities.
2024-01-29 00:56:09 +05:30
Harendra Kumar
b1b66d040d Rename some APIs in Path module
extend -> append
*unsafe -> unsafe*
2024-01-29 00:56:09 +05:30
Harendra Kumar
30c5a56ff9 Add example to express foldrM in terms of foldr 2024-01-25 23:24:12 +05:30
Harendra Kumar
84b4c91d44 Add pitfalls about NOINLINE on polymorphic functions 2024-01-25 20:43:44 +05:30
Harendra Kumar
5d096dfad5 Add some Data.List equiv. examples in Data.Stream 2024-01-25 13:52:31 +05:30
Harendra Kumar
a6a15e431d Rename, document, update joins/set operations 2024-01-25 13:50:02 +05:30
Harendra Kumar
f9a81d441e Cleanup exports in Data.Stream modules
Remove redundant exports.
Add headings, so that they do not get mixed up in haddock docs.
Reorder in some cases.
2024-01-25 01:09:42 +05:30
Harendra Kumar
b95b3c1bba Cleanup the export TOC of StreamK module 2024-01-25 01:09:42 +05:30
Harendra Kumar
8adebe0c02 Add a couple of useful/TODO comments 2024-01-25 00:37:27 +05:30
Harendra Kumar
66507ffa99 Add sortOn in StreamK module 2024-01-24 23:40:45 +05:30
Harendra Kumar
e669760f55 Add missing init/tail functions in Stream/StreamK 2024-01-24 23:05:02 +05:30
Harendra Kumar
8ef09392b3 Add streamly-core hackage badge 2024-01-24 22:56:59 +05:30
Harendra Kumar
b39bed0669 Refactor the "str" code 2024-01-24 22:56:59 +05:30
Harendra Kumar
207f948d22 Add a TODO comment about ensuring consistent signatures 2024-01-24 22:56:59 +05:30
Harendra Kumar
6fd884e094 Move non-GHC2021 extensions in a separate section 2024-01-24 22:56:59 +05:30
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