Haskell documents


The Pivotal GUI allows users to construct and display Haskell documents. A document consists of a collection of: These items may be freely positioned in the document.

For example, here is a simple document: Simple.hs

Documents correspond to Haskell modules; the name of the module is displayed in the upper right corner of the document. Documents are saved in the form of ordinary .hs files (with expressions and markup embedded as additional comments).

Liveness

Documents are live in the sense that any changes the user makes to a document are immediately reflected in the displayed values. In this sense, Pivotal documents behave like spreadsheets.

Items in a document may be changed in two ways:

Display of values

The value of each expression in a document is automatically displayed after the expression. The way that this is done is defined by the Display class, a graphical analog of the Show class that text-based systems (such as Hugs or ghci) use. The end effect is that: The details of the Display class are described in the section on the display of ADTs.