Yhc/API

From HaskellWiki
Part of Yhc

(Download)

We hope that Yhc will be useful both to people compiling Haskell programs, and to people who want to do things with Haskell at a lower level. As such, we intend to provide a variety of API's for general use. If anyone wants something that is not covered by these, please ask.

API Overview[edit]

The API's which we propose are:

Core[edit]

A standard representation of a minimal Haskell Core language. Useful for people who want to analyse Haskell, but would rather work with less constructs. Also useful if you want to reuse the front end of Yhc.

Bytecode[edit]

Yhc produces a portable bytecode format, .hbc files. This API allows you to play with these bytecode files. This is useful for people writing .hbc to something else translators, analysis tools etc.

Interpreter[edit]

Compiler[edit]