Pivotal motif

User notes


The present Pivotal system is an experimental protoype; it is not intended for serious use. The following notes are provided for anyone who wishes to try out the system.

Entering and editing items in a document

To enter an item in a document:

To move or edit an existing item in a document:

Comments

Comments in a document can be of two kinds: plain comments or marked-up comments. The former are ordinary Haskell comments, the latter (which are indicates by a leading "#" in a comment) can include a subset of HTML markup tags. The following HTML tags are recognised: In addition, the span tag allows the following attributes to be specified:

For example, the comments in this document Comments.hs are produced by the following entries:

-- A plain comment

-- # A marked-up comment

-- # <big>A major comment</big>

-- # Some <b>bold faced text</b>

-- # x<sup>2</sup> + y<sup>2</sup> = z<sup>2</sup>

-- # A comment with <span foreground="red"
     underline="double">some double red underlining</span>

Error handling

Any error in a declaration aborts all evaluation in a document. The GHC compiler error message appears in the command window from which the system was invoked.

An error in an expression aborts evaluation of that expression, but (assuming it does not cause exhaustion of resources) does not affect evaluation of other expressions in a document.

Control of evaluation

Evaluation of all expressions in a document may be stopped by pressing the "Eval ?" button on the toolbar. This is useful when editing a document that contains expressions (such as those related to the processing of large images) whose evaluation unduly impairs the responsiveness of the GUI.

Saving documents to file

Documents may be saved to file (in the modules directory) using the Save and Save as commands. A new module is automatically named Main. Its name may be changed using the Save as command. A module with name Name is saved as file Name.hs.

Documents are saved as ordinary Haskell files. The location of items in a document are saved as comments like

    -- <50,100>
and free-standing Haskell expressions in a document are saved as comments like
    -- ? foldr `Super` NoPic pics