Commit 13ec31c0 authored by panne's avatar panne
Browse files

[project @ 2003-08-22 10:21:46 by panne]

The autoconf magic for the library documentation belongs to
libraries/, not ghc/.
parent c2ae23c6
......@@ -24,9 +24,9 @@ AC_PREREQ(2.52)
dnl * Declare subdirectories that have a private configure script
dnl After the toplevel configuration is complete, the script will recurse into
dnl these subdirectories (the use of cache values makes repeated checks cheap)
dnl (We probably have to add hslibs/{OpenGL,GLUT} here later...)
dnl these subdirectories if they exist. The use of a cache file makes repeated
dnl checks cheap.
AC_CONFIG_SUBDIRS([ghc libraries])
# -------------------------------------------------------------------------
# Prepare to generate the following header files
# ---------------------------------
[$2HTMLStart=""; $2HTMLEnd=""],
[$2HTMLStart="<!--"; $2HTMLEnd="-->"])[]dnl
# 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.
# Initialise and check sanity.
# Compute the version number.
version=`sed -e 's/.*\([[0-9]]\)\.\([[0-9]]*\).*/\1.\2/' VERSION`
......@@ -9,29 +9,5 @@ patchlevel=1
# Uncomment links to unix docs if necessary.
# NOTE: This is a slight hack: It needs to be synchronized with
# fptools/ and fptools/libraries/Makefile and should probably use
# target features instead of host.
case $host in
i[[3456]]86-*-mingw32*) fp_supports_unix=no ;;
*) fp_supports_unix=yes ;;
FP_HTML_COMMENT([test x"$fp_supports_unix" = xyes], [unix])
# Uncomment links to ObjectIO docs if necessary.
[Build ObjectIO, a portable GUI library for Haskell.]))
FP_HTML_COMMENT([test x"$enable_objectio" = xyes], [ObjectIO])
# Uncomment links to HOpenGL docs if necessary
[Build HOpenGL, a Haskell binding for OpenGL/GLUT.]))
FP_HTML_COMMENT([{ test x"$enable_hopengl" = xyes || test x"$enable_hopengl" = xx11; }], [HOpenGL])
# Write the results...
AC_OUTPUT(ghc.spec docs/libraries.html)
......@@ -3,7 +3,7 @@ include $(TOP)/mk/
SUBDIRS = users_guide
PAGES = index.html libraries.html
PAGES = index.html
install-docs :: $(PAGES)
$(INSTALL_DIR) $(datadir)/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "">
<TITLE>Haskell Hierarchical Libraries</TITLE>
<H1>Haskell Hierarchical Libraries</H1>
<P>The libraries are divided into several <EM>packages</EM>.
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.</P>
<A HREF="base/index.html"><TT>base</TT></a>
the Prelude, and a large collection of useful libraries.
<A HREF="haskell98/index.html"><TT>haskell98</TT></a>
Haskell 98 and FFI Standard Libraries.
<A HREF="haskell-src/index.html"><TT>haskell-src</TT></a>
manipulating Haskell source code.
<A HREF="network/index.html"><TT>network</TT></a>
networking support libraries.
<A HREF="parsec/index.html"><TT>parsec</TT></a>
monadic parser combinators.
<A HREF="QuickCheck/index.html"><TT>QuickCheck</TT></a>
automatic specification-based testing.
<A HREF="readline/index.html"><TT>readline</TT></a>
a library for interactively reading input from the console.
<A HREF="unix/index.html"><TT>unix</TT></a>
supplies POSIX functionality.
<A HREF="OpenGL/index.html"><TT>OpenGL</TT></a>
3D rendering.
<A HREF="GLUT/index.html"><TT>GLUT</TT></a>
the OpenGL utility toolkit.
<A HREF="ObjectIO/index.html"><TT>ObjectIO</TT></a>
GUI library.
<H2>Implementation-specific notes</H2>
<DT><A HREF="">GHC/GHCi</A></DT>
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 <tt>--make</tt> option: in this
case you must list all the packages to link to by adding the
<tt>-package</tt> <i>P</i> flag (where <i>P</i> is the package
name) to the command line for each package.
See the <a href="users_guide/users-guide.html">User's Guide</a>
for more details.
<DT><A HREF="">Hugs 98</A></DT>
Hugs provides almost all of the modules in the
<A HREF="base/index.html"><TT>base</TT></a> package
and all the modules in the
<A HREF="haskell98/index.html"><TT>haskell98</TT></a>,
<A HREF="haskell-src/index.html"><TT>haskell-src</TT></a>,
<A HREF="network/index.html"><TT>network</TT></a>,
<A HREF="parsec/index.html"><TT>parsec</TT></a> and
<A HREF="QuickCheck/index.html"><TT>QuickCheck</TT></a> packages.
Most of the modules in the <A HREF="unix/index.html"><TT>unix</TT></a>
package are supported, too.
If the target platform supports OpenGL, the
<A HREF="OpenGL/index.html"><TT>OpenGL</TT></a> and
<A HREF="GLUT/index.html"><TT>GLUT</TT></a> packages are supported too.
All those modules are always available, as a single hierarchy;
Hugs does not use the package subdivision.
<DT><A HREF="">Nhc98</A></DT>
The modules of the <tt>haskell98</tt> package are available
without the need to use any additional compile-time options.
To use modules from some other package <i>P</i> with Nhc98,
add the compile-time option <tt>-package</tt> <i>P</i>.
Nhc98 currently provides many of the modules in the
<tt>base</tt> package (see the
<a href="">Nhc98 libraries page</a>
for a list).
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment