<A HREF="manual_c.htm"><img align=center src="contents.gif" ALT="Contents"></A> Up Previous Next

Library overview

Haskell 1.4 places much greater emphasis on the use of libraries than previous versions of the language. Following that lead, the Hugs 1.4 distribution includes most of the official libraries defined in the Haskell Library Report [2]. The distribution also includes a number of unofficial libraries, which fall into two categories: portable libraries, which are implemented using standard Haskell or widely implemented Haskell extensions; and Hugs-specific libraries, which use features that are not available in other Haskell implementations.

All that you need to do to use libraries is to import them using an import declaration. For example:

 module MandlebrotSet where
 import Array
 import Complex
 ...
Of course, this assumes that HUGSPATH has been set to point to the directories where the libraries are stored, and that import chasing is enabled. The default search path includes the directories containing both the standard and unofficial libraries.

Standard Libraries
Portable Libraries
Hugs-Specific Libraries