Commit Graph

3512 Commits

Author SHA1 Message Date
Harendra Kumar
8dd618b1ba Increase heap limit for building Parser tests 2022-08-20 23:05:13 +05:30
Harendra Kumar
cd85ea79e0 Remove MonadThrow from toFold, use error instead 2022-08-20 23:05:13 +05:30
Harendra Kumar
a054c81efc Remove redundant MonadCatch from Parser benchmark module 2022-08-20 23:05:13 +05:30
Harendra Kumar
86037e62e7 Remove MonadCatch from ParserK benchmarks 2022-08-20 23:05:13 +05:30
Harendra Kumar
ea224a4c4a Remove MonadCatch constraint in binary decode module 2022-08-20 23:05:13 +05:30
Harendra Kumar
3ef32ce12e Remove redundant MonadCatch/Throw from Parser module 2022-08-20 23:05:13 +05:30
Harendra Kumar
c44c37037b Remove redundant MonadThrow from ParserD 2022-08-20 23:05:13 +05:30
Harendra Kumar
b870dbeb1e Remove MonadCatch constraints from parser benchmarks 2022-08-20 23:05:13 +05:30
Harendra Kumar
2ae97598f4 Remove redundant MonadCatch constraint from manyTill 2022-08-20 23:05:13 +05:30
Harendra Kumar
41e878ba46 Fix the perf of parseGroupRollingEither benchmarks 2022-08-20 23:05:13 +05:30
Harendra Kumar
98fef06f36 Refactor parseGroupsRollingEither benchmarks
Write in a single IO action style.
2022-08-20 23:05:13 +05:30
Harendra Kumar
8e03301862 Add tests for Alternative instance of ParserD 2022-08-20 23:05:13 +05:30
Harendra Kumar
c0769668d9 Change the type of parser "extract" to Step 2022-08-20 23:05:13 +05:30
Harendra Kumar
805016f7cb Import "Stream" from Data.Stream (fix windows build) 2022-08-20 23:02:25 +05:30
Ranjeet Ranjan
a40431740c
Replace SerialT with Stream for remaining modules (#1777)
* Replace SerialT to Stream for remaining modules

* Reduce the usage of IsStream in benchmarks

And some other refactoring.

Co-authored-by: Harendra Kumar <harendra@composewell.com>
2022-08-20 11:13:11 +05:30
Ranjeet Ranjan
7dde623b7d
Move Streamly.Data.Unfold module to streamly-core package (#1771)
* Move Streamly.Data.Unfold to streamly-core package

* Remove readStream, just use the monomorphic fromStream

Co-authored-by: Harendra Kumar <harendra@composewell.com>
2022-08-20 10:59:13 +05:30
Ranjeet Ranjan
ec760805c9
Modularize test cases (#1707)
* Modularize test cases

* Make it build with test-core flag

And several other changes.

Co-authored-by: Harendra Kumar <harendra@composewell.com>
2022-08-20 00:45:57 +05:30
Ranjeet Kumar Ranjan
ca76876369 Repurpose the streamk build flag
Fix review comments

Fix review comments

Rename stramk CI to no-fusion
2022-08-19 17:12:36 +05:30
Harendra Kumar
9cce0ebeed Make some doc updates in Streamly.Data.Stream.* 2022-08-19 17:10:05 +05:30
Ranjeet Kumar Ranjan
0dc91ab41c Add Streamly.Data.Stream module in streamly-core 2022-08-19 17:10:05 +05:30
Harendra Kumar
f6575228c4 Make doctest build faster (no optimization) 2022-08-19 17:05:33 +05:30
Harendra Kumar
5c5e7feada Suppress new warnings from ghc-9.2 2022-08-18 11:11:02 +05:30
Harendra Kumar
5413bd4cc7 Update bench-runner's default.nix 2022-08-18 11:11:02 +05:30
Harendra Kumar
bc0da07b19 Increase heap size for some benchmarks 2022-08-18 11:11:02 +05:30
Harendra Kumar
feee31f1e7 Add streamly-targets to bench-runner cabal.project 2022-08-18 11:11:02 +05:30
Ranjeet Kumar Ranjan
18a226b9f0 Array.Foreign -> Array.Unboxed in tests and benchmarks & intenals
Co-authored-by: Ranjeet <ranjeet@composewell.com>
2022-08-17 15:09:42 +05:30
Ranjeet Kumar Ranjan
08acfe2e59 Change array constructor accessor 2022-08-17 13:12:44 +05:30
Harendra Kumar
cc3bbd76dc Use a macro definition for assertM
So that the error location is reported correctly by the compiler when
the assert is hit.
2022-08-15 02:00:24 +05:30
Harendra Kumar
63ba027ce4 Use assertM instead of assert in Parser code 2022-08-13 20:43:09 +05:30
Adithya Kumar
95fc1d2d05 Add a cabal.project for bench-runner 2022-08-13 20:37:29 +05:30
Ranjeet Kumar Ranjan
261a7e06fa Change warning options in streamly and streamly-core packages
Fix review comments
2022-08-12 11:08:00 +05:30
Adithya Kumar
6dd122a47a Make the note of eta-reduction under mapFB more evident 2022-08-10 19:00:24 +05:30
Ranjeet Kumar Ranjan
6f68b50d18 Fix hlint in multiple streamly-core files 2022-08-10 19:00:24 +05:30
Adithya Kumar
3ae32c55d9 Remove cabal.project in bench-runner and update the benchmark guide 2022-08-10 16:34:55 +05:30
Adithya Kumar
e304abc3cf Update packages in cabal.project.report 2022-08-10 16:34:55 +05:30
Adithya Kumar
8e70810cf4 Update the revision of packdiff 2022-08-10 16:34:46 +05:30
Harendra Kumar
d76314459e Rename some variables and constructors in ParserK
To make the constructors consistent with ParserD.

Rename variables for brevity, clarity and consistency.
2022-08-10 13:25:23 +05:30
Harendra Kumar
dde88b8b00 Fix hlint error on ParserD/Type 2022-08-10 13:25:23 +05:30
Harendra Kumar
ff1dd549c6 Make run-ci.sh working
You need to have test-runner and bench-runner built and installed in the
bin directory.
2022-08-09 01:59:59 +05:30
Harendra Kumar
ffb1dfcc90 Update default.nix for bench/test-runner 2022-08-09 01:59:59 +05:30
Harendra Kumar
af9e344557 Remove stale Prim Array targets from test-runner 2022-08-09 01:59:59 +05:30
Harendra Kumar
98d3ea9d27 Add stream generation functions to Data.Stream 2022-08-09 01:07:40 +05:30
Ranjeet Kumar Ranjan
b528bae8ce Add Timed API for stream generations 2022-08-08 19:41:12 +05:30
Harendra Kumar
4bb8b7c950 Add fromByteStr# and fromStr#
Routines to generate byte/char streams from Haskell string literals.
2022-08-08 02:10:44 +05:30
Ranjeet Kumar Ranjan
64512cec06 Add api to generate Stream from memory Address 2022-08-07 13:31:16 +05:30
Harendra Kumar
9ed94a6a09 Implement many2, map2
* crossWith and many can be implemented in terms of many2
* rename mapmWithInput to mapM2
* add map2
2022-08-07 13:25:40 +05:30
Harendra Kumar
07eb3038f5 Enable hlint on streamly-core package
Remove non-existing files from .hlint.ignore
Add streamly-core files that are hlint clean to .hlint.ignore
2022-08-06 23:16:43 +05:30
Harendra Kumar
f5ef71303e Merge pull request #1751 2022-08-06 23:15:28 +05:30
Harendra Kumar
bfb1624a57 Add more Prelude.Serial benchmarks to Data.Stream
And refactor for simplification and code-reuse.
2022-08-06 19:59:01 +05:30
Ranjeet Kumar Ranjan
8fbc085ef4 Move Prelude.Serial benchmarks to Data.Stream 2022-08-06 16:43:53 +05:30