{ "info": { "author": "thautwarm", "author_email": "twshere@outlook.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: Implementation :: CPython" ], "description": "[![Build Status](https://travis-ci.org/thautwarm/reley.svg?branch=master)](https://travis-ci.org/thautwarm/reley)\n\nSee examples at `haskell_test/*.hs`.\nCurrently you can install reley compiler with `python setup.py install`.\n\nUsage\n============\n\n- Compile:\n\n```\n> reley cc .hs -o .pyc\n> python .pyc\n```\n\n- Run Reley\n\n```\n> reley run .hs\n```\n\n- Import reley programs in Python\n\nIf you have a reley source file `haskell_test/sum_n.hs`:\n\n```haskell\nmodule\n m_sum, (==) -- export `m_sum` and `(==)`\nwhere\n\nimport operator (add, eq)\nimport functools (reduce)\nimport toolz (curry)\nimport reley.prelude ((+))\n\ninfix 5 (==)\ninfix 0 ($)\n(==) = curry eq\n($) a b = a b\n(+) = curry add\n\n\nm_sum lst = if lst == [] then 0\n else destruct lst\n where\n destruct (a, b) = a + m_sum(b)\n\nmain () =\n print $ m_sum [1, 2, 3, 4, 5, 6]\n\n```\n\nThen you can import it in Python\n\n```python\nimport reley.impl.pycompat\n\nfrom haskell_test.sum_n import m_sum\nlst = (5, (2, (1, ())))\nprint(m_sum(lst))\n\n```\n\nAbout Reley\n====================\nIt's in an early stage with many shortages.\nMost of the crucial Haskell features are missing.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/thautwarm/reley", "keywords": "haskell", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "reley", "package_url": "https://pypi.org/project/reley/", "platform": "any", "project_url": "https://pypi.org/project/reley/", "project_urls": { "Homepage": "https://github.com/thautwarm/reley" }, "release_url": "https://pypi.org/project/reley/0.1.18/", "requires_dist": null, "requires_python": "", "summary": "A static compiled language on Python with type safety, efficiency and syntax sugars.", "version": "0.1.18" }, "last_serial": 4276069, "releases": { "0.1.13": [ { "comment_text": "", "digests": { "md5": "cfcec4125cef26c0c462a7e93f8d78dd", "sha256": "981c8d03a523ca26b8369dcc930aead695272d0729d9e672b5c7a148135663d3" }, "downloads": -1, "filename": "reley-0.1.13-py3-none-any.whl", "has_sig": false, "md5_digest": "cfcec4125cef26c0c462a7e93f8d78dd", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 12797, "upload_time": "2018-09-14T04:33:21", "url": "https://files.pythonhosted.org/packages/0a/41/3ee53d011f31961fdef84a6828b3ab5b7483fd72db8bc940fe1332908b30/reley-0.1.13-py3-none-any.whl" } ], "0.1.18": [ { "comment_text": "", "digests": { "md5": "cdd1f7af0ad2d46aca9241ced858eaec", "sha256": "90b8a375f62b259c2ff903cdb968588eabf453d6ae400881d84152805734b0df" }, "downloads": -1, "filename": "reley-0.1.18-py3-none-any.whl", "has_sig": false, "md5_digest": "cdd1f7af0ad2d46aca9241ced858eaec", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 16267, "upload_time": "2018-09-16T08:24:46", "url": "https://files.pythonhosted.org/packages/fd/ed/5dc58a035f97442179ce0ee1f42b31df009ae91f079856c92a60a5954b1b/reley-0.1.18-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cdd1f7af0ad2d46aca9241ced858eaec", "sha256": "90b8a375f62b259c2ff903cdb968588eabf453d6ae400881d84152805734b0df" }, "downloads": -1, "filename": "reley-0.1.18-py3-none-any.whl", "has_sig": false, "md5_digest": "cdd1f7af0ad2d46aca9241ced858eaec", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 16267, "upload_time": "2018-09-16T08:24:46", "url": "https://files.pythonhosted.org/packages/fd/ed/5dc58a035f97442179ce0ee1f42b31df009ae91f079856c92a60a5954b1b/reley-0.1.18-py3-none-any.whl" } ] }