Source

haskell-python /

Filename Size Date modified Message
pyhaskell
173 B
51 B
1.3 KB
407 B

Haskell-python

INTRO

PyPy

To start using the project, fetch pypy from the pypy repository, and add the path to the repo to your PYTHONPATH env variable.

Also add the path to this repo to your PYTHONPATH env variable.

GHC

The project uses GHC as a frontend, you need GHC to compile the core2js.hs file in the core/ directory. (Tested with ghc == 7.4.1) core2js.hs has the following dependencies: * json - http://hackage.haskell.org/package/json-0.5 * extcore - http://hackage.haskell.org/package/extcore-1.0.1

INTERPRETER

We support interpretion of jscore files (filetype .hcj), which can be fed to the 'pyhaskell/main.py' module.

PARSER

LIBRARIES

Haskell libraries are loaded from the folder 'pyhaskell/builtin', if a library does not exist there, it attempts to load it from 'pyhaskell/ghc_modules'.

We use RPython to implement some Haskell libraries, as this can be beneficial for testing as well as optimizations.

TESTS

'pyhaskell/runtests.py' runs whole-program level tests located in 'pyhaskell/test/'.

License

TODO: add a LICENSE file for the haskell-python project.

Files in 'pyhaskell/ghc_modules' are copied from GHC repository, where each subfolder contains a LICENSE file specifying its license.