reley 0.1.18

Creator: bradpython12

Last updated:

Add to Cart

Description:

reley 0.1.18

[![Build Status](https://travis-ci.org/thautwarm/reley.svg?branch=master)](https://travis-ci.org/thautwarm/reley)See examples at `haskell_test/*.hs`.Currently you can install reley compiler with `python setup.py install`.Usage============- Compile:```> reley cc <filename>.hs -o <out>.pyc> python <out>.pyc```- Run Reley```> reley run <filename>.hs```- Import reley programs in PythonIf you have a reley source file `haskell_test/sum_n.hs`:```haskellmodule m_sum, (==) -- export `m_sum` and `(==)`whereimport operator (add, eq)import functools (reduce)import toolz (curry)import reley.prelude ((+))infix 5 (==)infix 0 ()(==)=curryeq() a b = a b(+) = curry addm_sum lst = if lst == [] then 0 else destruct lst where destruct (a, b) = a + m_sum(b)main () = print $ m_sum [1, 2, 3, 4, 5, 6]```Then you can import it in Python```pythonimport reley.impl.pycompatfrom haskell_test.sum_n import m_sumlst = (5, (2, (1, ())))print(m_sum(lst))```About Reley====================It's in an early stage with many shortages.Most of the crucial Haskell features are missing.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.