Most of the stuff here was originally not written with the intention to form a general library, but for a specific purpose: it was needed in the web browser WWWBrowser. This library is thus mostly a collection of stuff that seems to be reusable from the implementation of WWWBrowser.
The main ingredients are
htmlFetchF
, for use in web clients (to fetch documents from URLs),simpleHttpServer
for creating web servers.- The type
Html
, with various accompanying functions, e.g.,parseHtml
andprintHtml
. - The type
GIFFile
, which makes displaying GIF images just as easy as displaing text in Fudget programs.
The index lists everything exported from the library. The beginner index lists only the simple stuff (but more things should be classified as simple...).
The library may be extended in the future.
[Old] Compiling programs with hbc
To useInternetLib
, you should import it:
import InternetLib
To compile programs using InternetLib
, use the command
hbcxmake -contrib -i%InternetLib programname
History
- ~1993: The work on WWWBrowser began.
- May 1998: The first version of this library was created.
- February 2001: The Html type and related functions were added.
- April 2001: simpleHttpServer with related types and functions were added.
- July 2010: internet.cabal and fudgets-internet.cabal were added (splitting the library into two parts).
- April 2023: Support for PNG images was added (optionally included, since it adds dependencies on bytestring and zlib).
- May 2023:
JuicyPixels
can now be used to load JPEG images without calling external programs.
Added the program
imageViewer
to view any type of image supported by JuicyPixels. - September 2023: the source repository was converted from CVS to darcs.
Last modified: Wed Nov 6 19:01:18 CET 2024
Thomas Hallgren