haskell / haskell/binary

Support decoding from a Get monad

Đang mở
#57 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Haskell
Star
120
Fork
70
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I prefer not to ask for convenience functions willy-nilly, but I think refactoring `decodeFileOrFail` with this signature would be useful:

``` haskell
decodeGetFileOrFail :: Get a -> FilePath -> IO (Either (ByteOffset, String) a)
```

The reason is because there is a nontrivial chunk of code for running the incremental parser that preferably we'd avoid duplicating. I'll submit a PR soon.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Start by reading the existing decodeFileOrFail entry point and the incremental parser path it uses. Check the proposed decodeGetFileOrFail signature against the current API; done means decoding from a Get value works without duplicating the nontrivial parser-running logic.

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
data
Loại issue
Tính năng
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.