Make StreamK based types as well using MkType module

Open
#3,116 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
haskell
Domain
backend

Research direction

Start by reading the existing MkType module and the Nested type in the Stream module; the issue does not name file paths or tests. Work out how to move shared functionality into streamly-core and add options for generating StreamK based types and optional mtl instances. Done means the macros can generate the proposed Nested and FairNested variants with the requested instance options.

Written by the indexing model from the issue text.

Description

  • We can move the common functionality to streamly-core, so that we can generate the types defined in streamly-core also using the same macros.
  • The Nested type in the Stream module can be generated using this with mtl instances like MonadReader, MonadState etc. we can have an option to generate mtl instances or not. In streamly-core we can omit those.
  • We can also have an option to use StreamK instead of Stream so that StreamK based Nested, FairNested types can be generated using these.
Dominant language
Haskell
Stars
926
Forks
71
Avg merge
6h 49m
Merged PRs (30d)
3

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from composewell/streamly

All issues in composewell/streamly

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.