Personal tools

Yhc/API

From HaskellWiki

< Yhc
Jump to: navigation, search
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.

Contents

1 API Overview

The API's which we propose are:

1.1 Core

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.

1.2 Bytecode

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.

1.3 Interpreter

1.4 Compiler