New GHC Extension, -XOverloadedApplication
- Ngôn ngữ chính
- Haskell
- Star
- 1.3k
- Fork
- 201
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng việc điều tra parsing, desugaring, pretty-printing và cách xử lý thông báo lỗi của GHC đối với hai phần mở rộng được đề xuất. Xác định cách mỗi hành vi được yêu cầu phải hoạt động, bao gồm operator sections, tuple và cách diễn đạt tham số; issue không nêu tên tệp hay test nào, vì vậy trước tiên cần xác định các điểm vào của phần triển khai.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- haskell
- Lĩnh vực
- compilers
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100