Commit Graph

161 Commits

Author SHA1 Message Date
endgame
e69096f75d Fix markdown 2021-04-05 07:56:54 +05:30
pranaysashank
d65f2b4045 Move examples to streamly-examples repo.
Closes #684
2020-10-27 21:24:40 +05:30
pranaysashank
2a1097fcdf Fix copyright and author information.
Closes #688
2020-10-26 16:47:35 +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
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
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
c6fdb3ac0a Upgrade stack/lts to 16.12 2020-09-03 13:56:02 +05:30
pranaysashank
c8c161c34b Rename module Internal.Prelude to Internal.Data.Stream.IsStream. 2020-08-24 00:29:25 +05:30
Harendra Kumar
1639cfde98 Use monadic action to get the initial state
In ReaderT/StateT evaluation.
2020-08-19 19:41:08 +05:30
pranaysashank
d93ac86607 Drop support for GHC 7.10.3. 2020-08-12 11:24:34 +05:30
Harendra Kumar
287c3a3dc5 Make minor cosmetic review changes for #571 2020-07-07 14:17:44 +05:30
pranaysashank
202f674462 Change the signature of foldlM' to use a monadic seed.
- Also change usages of foldlM' in tests and benchmarks.
2020-07-07 14:17:44 +05:30
Harendra Kumar
f830c1a987 Add Split example to cabal file 2020-06-03 23:30:04 +05:30
Harendra Kumar
1691aa3ed1 Move rate test to examples 2020-06-03 23:30:04 +05:30
Julian Ospald
42fe1a1932 Fix build on i386_HOST_ARCH
Fixes #452
2020-03-22 23:44:32 +05:30
Harendra Kumar
eb71508749 improve Network.Socket doc and example 2020-03-05 01:22:31 +05:30
Harendra Kumar
785630e7e1 Use ahead and bimap 2020-01-21 15:16:27 +05:30
Harendra Kumar
2c77298837 update the examples and add comments 2020-01-08 21:03:20 +05:30
Harendra Kumar
9fca294e1c Add concatMapTreeWith combinator 2019-12-03 11:24:44 +05:30
Brian Wignall
c0a93a4033 Fix some easy-to-make typos 2019-11-26 02:09:15 +05:30
Harendra Kumar
0d43a94530 add comments 2019-11-15 03:34:02 +05:30
Harendra Kumar
9ef94b0e39 Folds with injection of initial state 2019-11-15 03:34:02 +05:30
Harendra Kumar
79a0c1e6fa hold Map based operations for now 2019-11-15 03:07:06 +05:30
Harendra Kumar
13c3e9a844 Fix histogram examples. 2019-11-15 01:05:33 +05:30
Harendra Kumar
e000868621 Use the File module instead of the Handle module. 2019-11-15 01:05:33 +05:30
Harendra Kumar
3315e1a615 Correct the order of arguments in finally. 2019-11-15 00:57:21 +05:30
Harendra Kumar
fcf54e3924 Add toDirs and toFiles 2019-11-14 06:35:14 +05:30
Harendra Kumar
5c4bbc5885 Add write folds, fromBytes/toBytes for File module 2019-11-14 06:35:14 +05:30
Harendra Kumar
56eb882abf refactor word classifier example 2019-11-14 00:01:57 +05:30
Harendra Kumar
eff742aa3a Use native dir listing functions for listdir example
We are not using the monad instance any more in the example. With these changes
the performance of list dir improved by 2x.
2019-11-13 22:02:37 +05:30
Harendra Kumar
6d0c0e95f0 rename readRequestsOf to readWithBufferOf etc. 2019-11-06 19:19:46 +05:30
Harendra Kumar
9bf84d4d37 Rename some IO APIs and update documentation 2019-11-06 01:30:55 +05:30
Harendra Kumar
011299be70 rename Unicode encode/decode ops
* refactor the Unicode stream module in Stream/Char/Array modules
2019-11-04 02:54:46 +05:30
Harendra Kumar
44e3cb36e9 hide char array string ops from Unicode stream module 2019-11-04 02:35:55 +05:30
Harendra Kumar
ab6587ba59 Move Data/String to Internal/Data/Unicode/Stream
rename Data.String to Data.Unicode.Stream
2019-11-04 02:35:55 +05:30
Harendra Kumar
b86b65ffe1 Add word count example
Implement parallel and correct utf8 wc
2019-10-30 00:14:06 +05:30
Harendra Kumar
9a61b42372 Add compiler build options 2019-10-17 21:28:37 +05:30
Harendra Kumar
9714d362ca Add camel case conversion example 2019-10-17 19:33:51 +05:30
Harendra Kumar
977a072ca3 rename listen* APIs to accept* 2019-10-15 00:40:15 +05:30
Harendra Kumar
31c17886bf Move Network.Client to Network.Inet.TCP 2019-10-15 00:40:15 +05:30
Harendra Kumar
49d3698bda Move Network/Server module to Network/Socket/Inet/TCP 2019-10-15 00:40:15 +05:30
Harendra Kumar
1a60915d0b do not use useSocket in server example 2019-10-15 00:40:15 +05:30
Harendra Kumar
df8de8d5bd rename withSocket to useSocket
operations like withFile create and a handle and then use it, however
withSocket uses an existing socket, so useSocket is a better name to avoid
confusion.

Also, make useSocket an internal operation for now, as it is trivial to
implement it.
2019-10-15 00:40:15 +05:30
Harendra Kumar
1e3259ce32 use unfolds for Network.Socket APIs 2019-10-15 00:40:15 +05:30
Harendra Kumar
4af5462e5f Implement network server ops as unfolds 2019-10-15 00:40:15 +05:30
Harendra Kumar
51f12c9d22 Use unfolds to read from file handles 2019-10-15 00:40:15 +05:30
Harendra Kumar
bf5e153bf5 rename Handle readArrays* APIs to toStreamArrays* 2019-10-15 00:40:15 +05:30