insert and forall in record
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- backend
Hướng nghiên cứu
The issue gives a PureScript example using Data.Record.insert, Type.Row.RowLacks, and a polymorphic row containing forall a. Array a; it does not name implementation or test files. Start by reading the insert type and the row-union constraints involved, then check whether the compiler can resolve this example. Done means explaining the failure and identifying whether the limitation belongs to this library or the compiler.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
If i have forall in record then you can't insert
module Main where
import Prelude
import Control.Monad.Eff (Eff)
import Data.Record (insert)
import Data.Symbol (SProxy(..))
import Type.Row (class RowLacks)
type ConfigR r = (baz :: forall a. Array a | r)
type Config r = Record (ConfigR r)
add
:: forall r
. RowLacks "fiz" (ConfigR r)
=> Config r
-> Config ( fiz :: String | r)
add c = insert (SProxy :: SProxy "fiz") "foo" c
error is:
No type class instance was found for
Prim.Union ( baz :: forall a. Array a
| r4
)
( fiz :: Entry
)
( fiz :: t5
| t6
)
Any explanation of why it happens?
I guess if you have forall in record compiler can't calculate Union for it
- Ngôn ngữ chính
- PureScript
- Star
- 68
- Fork
- 33
- Merge trung bình
- 2 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của purescript/purescript-record
-
Thoughts on replacing Proxy with VTA?Có thể đã có người làm @pete-murphy đã nhận 1043 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 10/100
purescript/purescript-record#85 · 3 bình luận · 2 reaction ·
-
Add `mergeFlipped`Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
purescript/purescript-record#84 · 5 bình luận · 1 reaction ·
-
type: documentation
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
purescript/purescript-record#49 · 7 bình luận ·
-
pick functionĐang mởpurs-0.15 type: breaking change
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
purescript/purescript-record#5 · 6 bình luận ·
Tất cả issue của purescript/purescript-record
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
remove the use of `forget`Đang mởgood first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
milind-soni/OpenMausBot#5829 ·
Maintainer thường phản hồi trong vòng 1 ngày