agentm / agentm/project-m36

add support for ADTs in haskell module import

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

Mô tả

Currently, Project:M36 will effectively coalesce the atom function signature `Integer -> Integer` into `[IntegerAtom val1, IntegerAtom val2]` with a Haskell wrapper, but the wrapper does not support algebraic data types. The goal of this feature would be to support something like this:

```
import ProjectM36.Module

data Light = Red | Yellow | Green

carCanGo :: Light -> Bool
carCanGo Green = True
carCanGo _ = False

projectM36Functions = do
declareAtomFunction "carCanGo"
```

To achieve this, Project:M36 needs to verify that the database's definition of `Light` matches the modules version, then complete the type wrapper.

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

Đánh giá

Issue này chưa được đánh giá.

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.