gcanti / gcanti/fp-ts-codegen

Multiple types in one string

Open
#20 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
107
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Hi, great library!! Is it possible to have multiple data types in one string? It is especially useful with types referencing types like 'data Game = NotStarted | WonPlayer1 Result | WonPlayer2 Result' and 'data Result = Result { player1Points :: number, player2Points :: number }'

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by examining how the current Haskell-like syntax is parsed and how type declarations are represented; use the Game and Result example to clarify the intended input and generated output. Done means multiple related type declarations in one string are accepted and generate the expected ADT code.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.