<A target="_top" HREF="manual_contents.html"><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 three categories: GHC libraries, which are compatible with those distributed with the Glasgow Haskell Compiler; Hugs libraries, which are only distributed with Hugs; and Experimental Hugs libraries which are only distributed with this version of Hugs.

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
GHC Libraries
Hugs-Specific Libraries
Experimental Hugs Libraries