{"id":22018811,"url":"https://github.com/thautwarm/reley","last_synced_at":"2025-06-11T00:05:59.097Z","repository":{"id":57460998,"uuid":"148501405","full_name":"thautwarm/reley","owner":"thautwarm","description":"haskell-like compiled language based on Python VM","archived":false,"fork":false,"pushed_at":"2018-09-16T08:27:41.000Z","size":80,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T03:35:13.165Z","etag":null,"topics":["compiled-language","haskell","python-bytecode","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thautwarm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-12T15:24:47.000Z","updated_at":"2022-04-13T02:53:32.000Z","dependencies_parsed_at":"2022-09-01T20:22:48.500Z","dependency_job_id":null,"html_url":"https://github.com/thautwarm/reley","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thautwarm%2Freley","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thautwarm%2Freley/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thautwarm%2Freley/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thautwarm%2Freley/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thautwarm","download_url":"https://codeload.github.com/thautwarm/reley/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thautwarm%2Freley/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259172960,"owners_count":22816557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiled-language","haskell","python-bytecode","python3"],"created_at":"2024-11-30T05:14:14.745Z","updated_at":"2025-06-11T00:05:59.076Z","avatar_url":"https://github.com/thautwarm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![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\u003e reley cc \u003cfilename\u003e.hs -o \u003cout\u003e.pyc\n\u003e python \u003cout\u003e.pyc\n```\n\n- Run Reley\n\n```\n\u003e reley run \u003cfilename\u003e.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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthautwarm%2Freley","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthautwarm%2Freley","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthautwarm%2Freley/lists"}