[[project @ 2003-08-22 10:21:46 by panne] panne**20030822102147 The autoconf magic for the library documentation belongs to libraries/, not ghc/. ] { hunk ./configure.ac 27 -dnl these subdirectories (the use of cache values makes repeated checks cheap) -dnl (We probably have to add hslibs/{OpenGL,GLUT} here later...) -AC_CONFIG_SUBDIRS(ghc) +dnl these subdirectories if they exist. The use of a cache file makes repeated +dnl checks cheap. +AC_CONFIG_SUBDIRS([ghc libraries]) hunk ./ghc/aclocal.m4 1 -# FP_HTML_COMMENT(VARIABLE, PREFIX) -# --------------------------------- -AC_DEFUN([FP_HTML_COMMENT], -[AS_IF([$1], - [$2HTMLStart=""; $2HTMLEnd=""], - [$2HTMLStart=""])[]dnl -AC_SUBST([$2HTMLStart])[]dnl -AC_SUBST([$2HTMLEnd])[]dnl -])# FP_HTML_COMMENT +# Although we don't need any local macros currently, we leave this file here. +# Otherwise autoreconf invokes aclocal from the automake tools, which might +# be nonexistent or too old. hunk ./ghc/configure.ac 2 -AC_INIT(ghc.spec.in) +AC_INIT([ghc.spec.in]) hunk ./ghc/configure.ac 12 -# Uncomment links to unix docs if necessary. -# NOTE: This is a slight hack: It needs to be synchronized with -# fptools/configure.ac and fptools/libraries/Makefile and should probably use -# target features instead of host. -AC_CANONICAL_HOST - -case $host in -i[[3456]]86-*-mingw32*) fp_supports_unix=no ;; -*) fp_supports_unix=yes ;; -esac -FP_HTML_COMMENT([test x"$fp_supports_unix" = xyes], [unix]) - -# Uncomment links to ObjectIO docs if necessary. -AC_ARG_ENABLE([objectio], - AC_HELP_STRING([--enable-objectio], - [Build ObjectIO, a portable GUI library for Haskell.])) -FP_HTML_COMMENT([test x"$enable_objectio" = xyes], [ObjectIO]) - -# Uncomment links to HOpenGL docs if necessary -AC_ARG_ENABLE([hopengl], - AC_HELP_STRING([--enable-hopengl], - [Build HOpenGL, a Haskell binding for OpenGL/GLUT.])) -FP_HTML_COMMENT([{ test x"$enable_hopengl" = xyes || test x"$enable_hopengl" = xx11; }], [HOpenGL]) - hunk ./ghc/configure.ac 13 -AC_OUTPUT(ghc.spec docs/libraries.html) +AC_OUTPUT([ghc.spec]) hunk ./ghc/docs/Makefile 6 -PAGES = index.html libraries.html +PAGES = index.html hunk ./ghc/docs/libraries.html.in 1 - - - - Haskell Hierarchical Libraries - - - -

Haskell Hierarchical Libraries

- -

The libraries are divided into several packages. - NOTE: there is not always a clean division between packages in the - hierarchy, which means a node and its children might be in - different packages. If you're looking for a specific module, try - all the packages below.

- -
-
- base -
- the Prelude, and a large collection of useful libraries. -
-
- haskell98 -
- Haskell 98 and FFI Standard Libraries. -
-
- haskell-src -
- manipulating Haskell source code. -
-
- network -
- networking support libraries. -
-
- parsec -
- monadic parser combinators. -
-
- QuickCheck -
- automatic specification-based testing. -
-
- readline -
- a library for interactively reading input from the console. -
-@unixHTMLStart@ -
- unix -
- supplies POSIX functionality. -
-@unixHTMLEnd@ -@HOpenGLHTMLStart@ -
- OpenGL -
- 3D rendering. -
-
- GLUT -
- the OpenGL utility toolkit. -
-@HOpenGLHTMLEnd@ -@ObjectIOHTMLStart@ -
- ObjectIO -
- GUI library. -
-@ObjectIOHTMLEnd@ -
- -

Implementation-specific notes

- -
-
GHC/GHCi
-
- Most of the time, all the packages are available without the - need to use any additional command-line options. The only - time when this is not the case is when linking a program on the - command line, without using the --make option: in this - case you must list all the packages to link to by adding the - -package P flag (where P is the package - name) to the command line for each package. - See the User's Guide - for more details. -
- -
Hugs 98
-
- Hugs provides almost all of the modules in the - base package - and all the modules in the - haskell98, - haskell-src, - network, - parsec and - QuickCheck packages. -@unixHTMLStart@ - Most of the modules in the unix - package are supported, too. -@unixHTMLEnd@ -@HOpenGLHTMLStart@ - If the target platform supports OpenGL, the - OpenGL and - GLUT packages are supported too. -@HOpenGLHTMLEnd@ - All those modules are always available, as a single hierarchy; - Hugs does not use the package subdivision. -
- -
Nhc98
-
- The modules of the haskell98 package are available - without the need to use any additional compile-time options. - To use modules from some other package P with Nhc98, - add the compile-time option -package P. - Nhc98 currently provides many of the modules in the - base package (see the - Nhc98 libraries page - for a list). -
- -
- - - rmfile ./ghc/docs/libraries.html.in }