Commit Graph

475 Commits

Author SHA1 Message Date
Harendra Kumar
d8b91239de Re-enable the tests disabled for 8.10.7 2024-08-03 18:14:42 +05:30
Harendra Kumar
e2dbbff473 Fix unsafe use of FFI for unpinned arrays
Pass the MutableByteArray# directly to the FFI functions to avoid
garbage collector moving it between the time we get a pointer and then
call the FFI function.
2024-08-02 22:08:54 +05:30
Harendra Kumar
b86d3be5a1 Fix a ParserK to ParserD conversion bug 2024-08-02 17:10:54 +05:30
Adithya Kumar
7fbc066e73 Add a test case for ParserK.toParser 2024-08-02 17:10:54 +05:30
Harendra Kumar
f64ff6d5b9 Disable failing Event.Linux tests for ghc-8.10 2024-08-02 16:37:14 +05:30
Harendra Kumar
d12e30b46f Add some debug code in Event.Linux tests 2024-08-01 08:17:30 +05:30
Harendra Kumar
fb9ba3509a Fix FileSystem.Event.Linux test cases
Use takeDirectory correctly.
2024-08-01 08:17:30 +05:30
Adithya Kumar
3e9c3a376e Rename several APIs in MutArray module
castUnsafe => unsafeCast
newArrayWith => emptyWithAligned
getSliceUnsafe => unsafeGetSlice
createOfWith => createWithOf (argument order convention)
putIndexUnsafe => unsafePutIndex
modifyIndexUnsafe => unsafeModifyIndex
getIndexUnsafe => unsafeGetIndex
realloc => reallocBytes
snocUnsafe => unsafeSnoc
spliceUnsafe => unsafeSplice
pokeSkipUnsafe => unsafePokeSkip
peekUncons => peek
peekUnconsUnsafe => unsafePeek
peekSkipUnsafe => unsafePeekSkip
2024-07-29 15:31:33 +05:30
Adithya Kumar
aa27315c43 Modify unsafe(Pinned)AsPtr & introduce unsafe(Pinned)CreateUsingPtr
unsafe(Pinned)AsPtr is used to read and overwrite
unsafe(Pinned)CreateUsingPtr is used to create
2024-07-29 15:31:33 +05:30
Harendra Kumar
06a370787b Add more debug msgs in Event.Linux test 2024-07-26 19:52:20 +05:30
Harendra Kumar
70725db939 Avoid locking a regular file during watch 2024-07-26 13:59:31 +05:30
Adithya Kumar
a6634be5e2 Fix unused imports for ghc-9.10 2024-07-21 03:18:21 +05:30
Adithya Kumar
626db35d71 Disable Non-blocking IO on watch fd on Linux
GHC uses fdStat to determine the fd type when setting non-blocking IO
and fdStat fails with Unsupported type.

Not sure if it is right to not use non-blocking, but the tests seem to be
passing right now.
2024-07-21 03:18:21 +05:30
Adithya Kumar
7d2863b0a1 Rename createLastOf to createOfLast
createLastOf sounds weird. createOfLast sounds more correct.
create - Array - Of - Last - N - elements
2024-07-19 03:08:10 +05:30
Adithya Kumar
155fddad55 Rename some internal functions respecting the array standards 2024-07-19 03:08:10 +05:30
Adithya Kumar
c247365972 Deprecate witeLastN & introduce createLastOf in Array.(Generic) 2024-07-19 03:08:10 +05:30
Adithya Kumar
dc7242b941 Deprecate functions new* and write* functions in Array modules
squash! Deprecate functions new* and write* functions in (Mut)Array.Generic
2024-07-19 03:08:10 +05:30
Adithya Kumar
ca881c620d Use MutableByteArray as the primitive for the ring buffer 2024-07-09 13:02:17 +05:30
Adithya Kumar
eee06b68c6 Use assertEq over assert in quickcheck properties 2024-07-05 11:21:08 +05:30
Harendra Kumar
cbe7c4be04 Disable 4000 thread test for aheadly 2024-06-25 00:25:39 +05:30
Adithya Kumar
4c407568f5 Fix hlint for the Serialize test file 2024-05-02 13:38:10 +05:30
Adithya Kumar
86e8accfb0 Implement UTF-16 encoding/decoding routines
- Add identity tests
- Add benchmarks
- Add Word16 to Word8 helpers
2024-02-22 15:19:48 +05:30
Adithya Kumar
febaeaac09 Remove cloning combinators from immutable arrays 2024-02-22 15:19:48 +05:30
Harendra Kumar
66745dc16e Add low rate examples, maxYields support in rate test 2024-02-18 03:11:57 +05:30
Harendra Kumar
486f5ee49d Add rate tests for new concurrent streams 2024-02-18 03:11:42 +05:30
Harendra Kumar
c4084db5c5 Implement ParserK to Parser conversion function 2024-02-03 05:06:07 +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
Adithya Kumar
af57e26270 Rename asUnpinnedPtrUnsafe and deprecate asPtrUnsafe
asUnpinnedPtrUnsafe -> unsafeAsPtr
asPtrUnsafe -> unsafePinnedAsPtr
2024-01-18 00:53:37 +05:30
Harendra Kumar
191abebe92 Fix serialize test taking too long, too much mem 2024-01-04 07:41:04 +05:30
Harendra Kumar
ce86302f08 Fix hlint issues in tests 2023-12-21 17:17:52 +05:30
Adithya Kumar
6eee16aebc Add a case to test equality of serialization encoding 2023-12-02 16:55:57 +05:30
Harendra Kumar
d55d68ab07 Fix build with "dev" flag on 2023-11-28 07:07:28 +05:30
Harendra Kumar
c0d3178fa4 Make SerializeConfig opaque 2023-11-28 03:36:49 +05:30
Harendra Kumar
26e8629ddc Disable failing takeBetween test 2023-11-28 01:46:13 +05:30
Harendra Kumar
fd93674cec Remove the intermediate Concurrent/Time/Exception modules 2023-11-27 15:50:24 +05:30
Harendra Kumar
d4db31c512 Move Serialize.Parser/Stream to Binary.Parser/Stream 2023-11-26 02:52:19 +05:30
Harendra Kumar
13581bfec1 Rename serialize/deserialize/size of Serialize class 2023-11-26 01:57:10 +05:30
Harendra Kumar
1efeed403b Rename peekByteIndex/pokeByteIndex to peekAt/pokeAt 2023-11-26 01:57:10 +05:30
Harendra Kumar
7cb856b7e6 Move the Array serialization APIs to the Array module 2023-11-26 01:57:10 +05:30
Harendra Kumar
56fd008519 Rename newByteArray to new
To keep it consistent with naming in other Array modules.
2023-11-26 01:57:10 +05:30
Harendra Kumar
6705ec00b9 Rename Data.Serialize to Data.MutByteArray 2023-11-26 01:57:10 +05:30
Harendra Kumar
627c72ae65 Rename newBytes and pinnedNewBytes 2023-11-24 13:38:10 +05:30
Harendra Kumar
47b10b3914 Rename MutableByteArray to MutByteArray 2023-11-24 13:38:10 +05:30
Harendra Kumar
dfa2079542 Move Stream.Chunked to Array.Stream 2023-11-24 12:37:42 +05:30
Harendra Kumar
33bffd614b Change deriveUnbox to use instance splice 2023-11-22 21:39:39 +05:30
Harendra Kumar
1640a686e7 Rename Config/defaultConfig to S/serializeConfig 2023-11-22 21:39:39 +05:30
Harendra Kumar
7d50e5e03e Implement deriveSerialize using deriveSerializeWith 2023-11-22 21:39:39 +05:30
Harendra Kumar
e7f6e7e9eb Add Config setter functions for Serialize derivation 2023-11-22 21:39:39 +05:30
Harendra Kumar
97e0d20ffb Re-export internal serialize modules and hide them 2023-11-21 02:37:28 +05:30
Harendra Kumar
621cb65f50 Move ToBytes and FromBytes under Data.Serialize 2023-11-20 17:43:55 +05:30