Finally, we reached dependent types in Python side.
- The Haskell Tool Stack
- Python 3.7+
P.S: For users of Python3.7-, you can make a PR to remove the usages of dataclass
and from __future__ import annotations
to support almost all Python versions, which I don't have time and motivations to deal with.
Firstly you should clone Idris-Cam and install it:
Then install idris-python
,
- Command: Idris-Python
- Command: Run-Cam
Quite verbose for the lack of encapsulations, not a good example but I'm too busy to work for this.
Following example just revealed that I've alredy implmented such a big task.
You might got
If you run it as a file with command idris-python
.