New GHC Extension, -XOverloadedApplication
- 主要言語
- Haskell
- スター
- 1.3k
- フォーク
- 201
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Ideally, we could tweak GHC to make a few changes that support CodeWorld's dialect of Haskell:
1. `NoCurriedOperators`: The expression `x + y` should desugar to `(+)(x, y)` instead of `(+) x y`. Operator sections remain unchanged.
2. `ApplicationRequiresParentheses`: Makes it an error to write `f x`, requiring `f(x)` instead. Tuples should not require additional parentheses. Also pretty-prints error messages as `f(x)` instead of `f x` or `f (x)`, and disables the logic that uses phrases like "in the first parameter" in error messages.
コントリビューションガイド
調査の方向性
まず、提案されている2つの拡張について、GHCのparsing、desugaring、pretty-printing、エラーメッセージ処理を調査してください。operator sections、タプル、パラメータの文言を含め、要求されている各動作をどのように機能させるべきかを定義してください。issueにはファイル名もテストも記載されていないため、まず実装のエントリーポイントを特定する必要があります。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- haskell
- 領域
- compilers
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100