Giter VIP home page Giter VIP logo

idris-erlang's Introduction

idris-erlang

Idris to Erlang Compiler and Libraries

  • Install Erlang
  • Setup a cabal sandbox, but its bin dir on your path.
  • Install Idris HEAD into sandbox. I'm bad about keeping this constant, but right now you want at least commit idris-lang/Idris-dev@d2f892b502248429822df5bd51d8db9776e29e7c , but probably with lenary/Idris-dev@b257e4bfab04f0c38efd493cd40ee78677a40081 (which solves some gotchas with erasure and constructors).
  • Checkout this repository and cd into its toplevel directory
  • Install idris-erlang using cabal install
  • Install the erlang package using (cd libs/erlang; idris --install erlang.ipkg)
  • Compile the runtime support using (cd irts; erlc *.erl)

You're up and running. To invoke the compiler, use

$ idris --codegen=erlang --package=erlang Main.idr -o main.erl

Then run the program using

$ escript main.erl

If everything has worked, then you should be able to compile and run all the examples. If not, you may need to fiddle about with your cabal sandbox quite a lot more, which is effort.

idris-erlang's People

Contributors

lenary avatar

Watchers

 avatar  avatar  avatar

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.