google / google/codeworld

User-reported unhelpful error message

クローズ
#1,802 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Haskell
スター
1.3k
フォーク
201
PR マージ指標
30日以内にマージされた PR はありません

説明

**Program:** https://code.world/haskell#PlluIfwylwWGLUS0ky9qN1Q

**Message:**

program.hs:13:26-29: error:
• Occurs check: cannot construct the infinite type: a ~ [a]
• In the expression: n : ns
In the expression: [n : ns]
In the expression:
if length ns == 3 then
[n : ns]
else
[n, (head ns), head (tail ns), ....] : breakItUp ns
• Relevant bindings include
ns :: [a] (bound at program.hs:12:14)
n :: a (bound at program.hs:12:12)
breakItUp :: [a] -> [[a]] (bound at program.hs:7:1)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

リンクされた CodeWorld プログラムを再現し、その Haskell コンパイラ診断がどのように表示されるかを調査します。レポートにはリポジトリのファイル、エントリポイント、テストが記載されていません。完了とするには、このエラーメッセージについて明確に合意された改善と、リンクされた例がそのメッセージを生成することの検証が必要です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
haskell
領域
developer-experience
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
活発
明瞭さ
説明が足りない
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。