adithyaov
c4f90b53ff
Fix replicateM in unfolds, don't perform action if not required.
2020-10-24 15:50:28 +05:30
adithyaov
fdf02e7186
Change the API of Internal.Unfold.iterateM & fix its behaviour
...
The behaviour is now same as the behaviour in Prelude
2020-10-24 15:50:28 +05:30
Harendra Kumar
f4e7f4b8b1
Use yieldM from ParserK
...
ParserD yieldM requires an additional input to yield a value, ParserD needs
to be fixed in general to avoid this issue.
2020-10-23 17:50:09 +00:00
Harendra Kumar
1fd498a537
Update documentation, format, add copyright info
2020-10-21 21:08:15 +05:30
Ranjeet Ranjan
a608695f4a
Add Windows file system event handling
2020-10-21 21:08:15 +05:30
pranaysashank
8061c97a76
Use monadic seed in monadic scanning combinators.
...
- The following functions are updated: scanlM, scanlM',
postscanlM, postscanlM', prescanlM'.
- Update Changelog.md.
2020-10-21 10:49:12 +05:30
pranaysashank
345fa5d5de
Fix library build with dev flag.
2020-10-20 23:54:09 +05:30
Harendra Kumar
caf0b559de
Put fs event executable under manual-tests flag
...
Otherwise it is always built when we build the library.
2020-10-20 22:28:42 +05:30
adithyaov
cd40d906b0
Add minimal docs and to multiple functions in Internal.Data.Unfold
2020-10-17 21:32:23 +05:30
adithyaov
5004f12409
Add docs & change the signature of replicateM and repeatM
...
This commit also include some other minor changes
2020-10-17 21:32:23 +05:30
adithyaov
c004bd7b75
Add additional generation unfolds
...
Unfolds added:
+ unfoldrM
+ fromPrimVar
+ fromSVar
+ enumerateFromStepNum
+ numFrom
2020-10-17 21:32:23 +05:30
adithyaov
f3658d171d
Add iterateM and fromIndicesM to Unfolds
2020-10-17 21:32:23 +05:30
adithyaov
240a082c3e
Add drop, dropWhile & dropWhileM to Internal/Data/Unfold
2020-10-17 21:32:23 +05:30
adithyaov
b226456b52
Rearrange a few functions in Internal/Data/Unfold
2020-10-17 21:32:23 +05:30
Harendra Kumar
a78e05b404
Fix smapM
2020-10-16 21:50:51 +05:30
Kirill Elagin
dfc13d8316
tutorial: Update conduit interop example
...
* It is now possible to uncons a conduit.
2020-10-16 19:24:53 +05:30
Kirill Elagin
c846b4e8f0
tutorial: Update interop examples
...
* Add missing haddock links.
* Rename unconsS to unconsEither to make it more clear what it does.
* Add missing imports.
* Add missing `MonadAsync` constraints.
* Simplify the implementations of adapters.
2020-10-16 19:24:53 +05:30
pranaysashank
25f76d5524
Add new encoding/decoding routines.
...
- Add encodeUtf8_, encodeLatin1_, encodeUtf8', encodeLatin1',
decodeUtf8_, decodeUtf8', decodeUtf8Arrays_, decodeUtf8Arrays'.
- encodeLatin1, encodeUtf8 don't fail when they encounter
invalid characters. Their stricter variants encodeLatin1',
encodeUtf8' do.
- encodeUtf8_, encodeLatin1_ drop the invalid characters.
- decodeUtf8 replaces any invalid character encountered with the
Unicode replacement character where as decodeUtf8' fails.
- decodeUtf8Arrays doesn't fail on invalid characters anymore
it replaces them with the Unicode replacement character.
- Deprecate decodeUtf8Lax, encodeLatin1Lax, encodeUtf8Lax.
- Update Changelog.md.
2020-09-17 12:16:11 +05:30
pranaysashank
ad05792d0b
Deprecate Streamly module and move the exports to Streamly.Prelude.
...
- Deprecate and replace functions:
foldWith => concatFoldableWith
foldMapWith => concatMapFoldableWith
forEachWith => concatForFoldableWith
2020-09-09 20:56:24 +05:30
adithyaov
e218fb9d8f
Deprecate Streamly.Memory.Array
...
According to the new module structure, it should be Streamly.Data.Array.Storable.Foreign
2020-09-04 16:55:16 +05:30
adithyaov
aa1e4e137f
Rename Streamly.Internal.Memory.Array
...
According to the new module structure, it should be Streamly.Internal.Data.Array.Storable.Foreign
2020-09-04 16:55:16 +05:30
adithyaov
4070c13937
Rename Streamly.Internal.Memory.Array.Types
...
According to the new module structure, it should be Streamly.Internal.Data.Array.Storable.Foreign.Types
2020-09-04 16:55:16 +05:30
adithyaov
c2be163374
Rename Streamly.Internal.Memory.Mutable.Array.Types
...
According to the new module structure, it should be Streamly.Internal.Data.Array.Storable.Foreign.Mut.Types
2020-09-04 16:55:16 +05:30
adithyaov
e3e69a11ea
Rename Streamly.Internal.Memory.Unicode.Array
...
According to the new module structure, it should be Streamly.Internal.Unicode.Array.Char
2020-09-04 16:55:16 +05:30
adithyaov
7d008199aa
Deprecate Streamly.Data.Unicode.Stream
...
According to the new module structure, it should be Streamly.Unicode.Stream
2020-09-04 16:55:16 +05:30
adithyaov
d3325c60f6
Rename Streamly.Internal.Data.Unicode.Stream
...
According to the new module structure, it should be Streamly.Internal.Unicode.Stream
2020-09-04 16:55:16 +05:30
adithyaov
b881ed3cd7
Rename Streamly.Internal.Data.Unicode.Char
...
According to the new module structure, it should be Streamly.Internal.Unicode.Char
2020-09-04 16:55:16 +05:30
Harendra Kumar
bf91f48e95
Add catMaybes, lefts, rights
2020-09-04 08:02:21 +05:30
Harendra Kumar
ad141c695d
Add/update stateful map/concat/iterate operations
...
Add smapM/concatSmapMWith
rename concatMapIterateWith => iterateMapWith
concatMapLoopWith is replaced by iterateSmapMWith
rename concatMapTreeWith => iterateMapLeftsWith
remove concatMapTreeYieldLeavesWith as it can be obtained by using
"rights" on iterateMapLeftsWith
2020-09-04 08:02:21 +05:30
Harendra Kumar
8f00412138
Add better explanatory doc for mfix
2020-09-04 08:02:21 +05:30
Harendra Kumar
6f94a2195e
Remove GHC cpp options
2020-09-03 16:31:32 +05:30
Harendra Kumar
683112943c
Update documentation
2020-09-03 16:31:32 +05:30
Harendra Kumar
6d6c37ed3c
Discover decls in header files using autoconf
2020-09-03 16:31:32 +05:30
Harendra Kumar
f03a4e8f25
Remove the header file ref in ccall ffi
...
The header file name is insignificant to the compiler and may become outdated
and misleading.
2020-09-03 16:31:32 +05:30
Harendra Kumar
6f350b7a15
Rename Darwin.c to Darwin.m
...
Apparently Objective C files are named .m, though .c also works fine.
2020-09-03 16:31:32 +05:30
Harendra Kumar
80bcdcfcb3
Replace CApiFFI with ccall
...
CApiFFI does not seem to be working on macOS 10.15. It seems to be working on
10.12, it was compiling on nix which is using 10.12.
Also, update documentation, rename overflow APIs, use NonEmpty list for paths,
change the Batching timer default to 0.
2020-09-03 16:31:32 +05:30
Harendra Kumar
c10061b390
Implement FS event handling for MacOS
2020-09-03 16:31:32 +05:30
Harendra Kumar
adc550beda
Add Data.Cont module for continuations
2020-09-03 15:25:16 +05:30
Harendra Kumar
a306a9ef2c
Call all continuations when extracting
...
When extracting the parser value in fromParserK we need to continue
calling the continuations and extracting until the parser finishes.
2020-09-03 12:33:24 +05:30
Harendra Kumar
6a6be9dfca
Initialize parser only if the stream is not empty
...
In parseMany on the next parse if we find that the stream has ended then
the parse may fail on extraction, so we initialize the parser only if
we see at least one element in the stream.
2020-09-03 12:33:24 +05:30
Harendra Kumar
fbb1c8492e
Fix a bug in ParserK yield operation
...
We should not increment the leftover count.
2020-09-03 12:33:24 +05:30
Harendra Kumar
eff325538e
Add docs and asserts for fromParserK
...
Added a Control.Exception module providing "assert" and "verify" convenience
utilities.
2020-09-03 12:33:24 +05:30
Harendra Kumar
c3dcabc1a9
Add instances and parseMany tests for ParserD
2020-09-03 12:33:24 +05:30
Harendra Kumar
c8203713ed
Use NonEmpty argument
2020-09-03 07:32:32 +05:30
Harendra Kumar
3cdc73c157
Implement handleToFd for GHC 8.0
2020-09-03 07:32:32 +05:30
Harendra Kumar
9fd6f72303
Use inotify flags only if the kernel supports them
2020-09-03 07:32:32 +05:30
Harendra Kumar
87700f6aca
Add FS event handling (inotify) module for Linux
2020-09-03 07:32:32 +05:30
Ahmed Zaheer Dadarkar
a84e6cf1db
Uncomment failing tests with few changes
2020-09-01 11:27:11 +05:30
adithyaov
b02925aa17
Capture inner monad state and associate it with the work for ahead
2020-08-29 04:13:10 +05:30
adithyaov
503e289482
Capture inner monad state and associate it with the work for async
2020-08-29 04:13:10 +05:30