Chapter 6. Hugs-specific language extensions

Table of Contents
6.1. Typed extensible records
6.2. Restricted type synonyms
6.3. Here documents
6.4. Hugs debugging primitives

These experimental features are unique to Hugs. Except of the debugging primitives, they require the -98 option.

6.1. Typed extensible records

Trex is a very powerful and flexible record system. See Section 7.2 of the Hugs 98 User Manual for details.

To use equality and show on extensible records, a module must import Hugs.Trex. This module also defines an empty record value and type:
  emptyRec :: Rec EmptyRow