Add a Testable instance for Either
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 領域
- testing
調査の方向性
Start by reading the existing Testable instances in purescript-quickcheck and the Either type and note usage shown in the issue. Determine which instance or instances are needed to make Either String Unit usable with the testing machinery, then check the project’s tests for the expected behavior. Done means the instance supports the shown composition pattern and has tests covering it.
索引モデルが issue の本文から書いたものです。
説明
Result is not a very composable data type, which makes it clunky to work with. If we add a Testable instance for Either String Unit we can use the whole machinery around the Either type and make testing a much more pleasant experience.
Contrived example of pleasant experience:
p :: Array String -> Either String Unit
p a = do
i <- note "Couldn't find hello." (elemIndex "hello" a)
if mod i 2 > 0
then Left "hello isn't on an index divisible by two."
else Right unit
In my opinion this experience becomes pleasant because I can use do-notation, note and a load of other niceties.
If you think this is a good idea I can implement the instance(s) needed and make a PR.
- 主要言語
- PureScript
- スター
- 108
- フォーク
- 42
- 平均マージ
- 2日 23時間
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
purescript/purescript-quickcheck のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
purescript/purescript-quickcheck#136 · コメント 1 件 ·
-
Lazy List Arbitrary Instance対応中かも @eviefp が 2206 日前に担当しました。 オープンtype: enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 20/100
purescript/purescript-quickcheck#111 · コメント 2 件 · リアクション 2 件 ·
-
type: documentation
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
-
purs-0.15 type: breaking change
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
purescript/purescript-quickcheck#104 · コメント 12 件 ·
-
Shrinkingオープンtype: enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
purescript/purescript-quickcheck#103 · コメント 6 件 · リアクション 4 件 ·
purescript/purescript-quickcheck の issue をすべて見る
似ている issue
-
[prefer-expect-resolves] autofix leaves a stray ")" when the awaited expression is parenthesizedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jest-community/eslint-plugin-jest#2052 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
johanhaleby/occurrent#1505 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
jeanibarz/knowledge-base-mcp-server#1262 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
future-agi/future-agi#4092 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信