This repository contains a collection of application examples for the Pythas
library.
It will grow with time and stay up to date with the master branch of Pythas
.
The examples are contained in Jupyter Notebooks in the notebooks
directory. Its subdirectories contain the accompanying Haskell code.
- [Appetizer using
matplotlib
to analyze a toy world-model implemented in Haskell](notebooks/0 - Wonderland.ipynb) - [Introduction to
Pythas
going over its accompanyingExamples.hs
module](notebooks/1 - Simple functions.ipynb)
Obviously one dependency is the Pythas
library. It can be obtained from GitHub.
You will also have to obtain either Stack
or GHC
.
Although part of Pythas
source is implemented in Haskell, you will not need to download any Haskell libraries. Pythas
provides everything to compile its Haskell source except for the compiler itself. It will keep your global Haskell environment completely untouched as it is written with compatibility in mind.
I'd be very happy to add some more applied examples. So if you have a FOSS project that uses Pythas
and you think it would be a good fit, let me know! Of course your example can be licensed differently than the rest of the notebooks.
If you find any mistakes, typos or have questions regarding any of the example notebooks, feel free to raise an issue on GitHub.
Pythas
is licensed under the LGPLv3 license. Some low level parts are useful enough to be available under the MIT
license. This will be specified in their respective repositories.
This part is licensed under LGPLv3. Please refer the accompanying COPYING
and COPYING.LESSER
files for details.