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 Python
If you have a reley source file `haskell_test/sum_n.hs`:
```haskell
module
m_sum, (==) -- export `m_sum` and `(==)`
where
import operator (add, eq)
import functools (reduce)
import toolz (curry)
import reley.prelude ((+))
infix 5 (==)
infix 0 ($)
(==) = curry eq
($) a b = a b
(+) = curry add
m_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
```python
import reley.impl.pycompat
from haskell_test.sum_n import m_sum
lst = (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.
Metadata
Release files for reley 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reley-0.1.18-py3-none-any.whl | Python 3 | none | any | Details for reley-0.1.18-py3-none-any.whl |
Release files / reley-0.1.18-py3-none-any.whl
| Download URL | reley-0.1.18-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90b8a375f62b259c2ff903cdb968588eabf453d6ae400881d84152805734b0df
|
|
BLAKE2b-256 checksum How to use checksums |
fded5dc58a035f97442179ce0ee1f42b31df009ae91f079856c92a60a5954b1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for reley 0.1.18
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.