Skip to content

thautwarm/idris-python

Repository files navigation

image

idris-Python

Finally, we reached dependent types in Python side.

Requirements

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.

Install

Firstly you should clone Idris-Cam and install it:

Then install idris-python,

Usage

  • Command: Idris-Python

image

  • Command: Run-Cam

image

Example

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.