Giter Site home page Giter Site logo

idris-python's Introduction

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.

idris-python's People

Contributors

thautwarm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

liyang9534

idris-python's Issues

MacOS support

Can I build this on MacOS Catalina?

Currently when I'm trying to launch stack build I have an error

Installed GHC.

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for Cabal-2.4.1.0:
    unix must match >=2.6.0.0 && <2.8, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to idris-cam-0.1.0.0 -> Cabal-2.4.1.0

In the dependencies for base-compat-0.10.5:
    unix needed, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to idris-cam-0.1.0.0 -> base-compat-0.10.5

In the dependencies for directory-1.3.6.0:
    unix must match >=2.5.1 && <2.9, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to idris-cam-0.1.0.0 -> directory-1.3.6.0

In the dependencies for haskeline-0.7.5.0:
    unix must match >=2.0 && <2.9, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to idris-cam-0.1.0.0 -> haskeline-0.7.5.0

In the dependencies for hfsevents-0.1.6:
    unix needed, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to idris-cam-0.1.0.0 -> hfsevents-0.1.6

In the dependencies for idris-1.3.2:
    unix must match <2.8, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to idris-cam-0.1.0.0 -> idris-1.3.2

In the dependencies for idris-cam-0.1.0.0:
    unix must match <2.8, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed since idris-cam is a build target.

In the dependencies for network-2.8.0.0:
    unix must match >=2, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to idris-cam-0.1.0.0 -> network-2.8.0.0

In the dependencies for process-1.6.7.0:
    unix must match >=2.5 && <2.8, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to idris-cam-0.1.0.0 -> process-1.6.7.0

In the dependencies for unix-compat-0.5.1:
    unix must match >=2.4 && <2.9, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to idris-cam-0.1.0.0 -> unix-compat-0.5.1

In the dependencies for zip-archive-0.4:
    unix needed, but the stack configuration has no specified version  (latest matching version is 2.7.2.2)
needed due to idris-cam-0.1.0.0 -> zip-archive-0.4

Some different approaches to resolving this:

  * Recommended action: try adding the following to your extra-deps in /Users/bmwant/projects/idris-cam/stack.yaml:

- unix-2.7.2.2@sha256:e69269a17b9fa26cb77f3f55e86c39d0a4940ccfa0c4bc20826919d2572076ad,3496

Plan construction failed.

Is it related to the OS used or some specific versions of toolset is required? Any guidance of how I should debug/resolve this error would be helpful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.