Applications and libraries/Web programming

From HaskellWiki
< Applications and libraries
Revision as of 02:17, 14 February 2007 by ConradParker (talk | contribs) (Update URI link from old w3 uri post to current Network.URI, and move out of XML section)
Jump to navigation Jump to search

Web, HTTP, HTML and XML programming.


See also the network category.

Haskell web applications

hpaste: the haskell pastebin
A pastebin site for Haskell runnning on top of HAppS. Source.
Replaces registration, confirmation mails, and multiple passwords with a single login. at your email domain. Runs on HAppS.

Web servers

Simon Marlow's concurrent Haskell web server
HWS with plugins
HWS updated with plugins, flexible logging, support for listening on multiple sockets

Site verification

A Rule-based System for Web site Verification


A wiki written in Haskell
A wiki written in Haskell and Javascript


Xtract is a `grep'-like command-line tool for searching XML and HTML documents.
Manuel Chakravarty's RSS 2.0 feed generator. It reads news items - in a non-XML, human-friendly format - distributed over multiple channels and renders them into the RSS 2.0 XML format understood by most news aggregators as well as into HTML for inclusion into web pages.
Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. It can read markdown and (subsets of) reStructuredText, HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, DocBook XML, LaTeX, RTF, and S5 HTML slide shows.
Factor CSS
This tool takes a CSS stylesheet on input and produces an almost equivalent stylesheet on output, but with rulesets split, combined, and reordered to "factor out" common declarations. This helps reveal shared components. The resulting stylesheet may also be smaller.



HTTP and Browser Modules
A significantly RFC compliant HTTP/1.1 client implementation. This is an updated version of Warrick Gray's original version.


HSP Clientside
HSPClientside is a library for generating client-side scripts (in JavaScript) from Haskell Server Pages (HSP).

Web frameworks

HAppS - Haskell Application Server
The Haskell Application Server contains a monadic framework for ACID transactions, an HTTP server (outperforms Apache/PHP in informal benchmarks), an SMTP server and mail delivery agent. A DNS resolver in pure Haskell. And XML and XSLT support.
Provides web sites with a simple shared web API to manage user logins, confirmation emails, forgotten passwords, etc. Most application frameworks dont have complete libraries to cover all of this functionality. Outsourcing this to means less complexity in your application and less worrying about mail delivery, mail server integration, etc. Pass.Net is currently beta. We expect it to be fully live and reliable by the end of the year. Pass.Net is written in Haskell using HAppS and provides an easy to use Haskell library for HAppS user. Clients in python, php, and java coming soon.
A family of combinator libraries for programming Web applications. WASH/HTML is for generating dynamic HTML documents, combining flexibility and safety. WASH/CGI is for server-side Web scripting with sessions, compositional forms, and graphics.
Another combinator library -- for editors! But a very fruitfully general approach to the concept of editor is presented. Therefore, these editor combinators can be used also e.g. as browser combinators, with interesting new possibilities for browsers.
Haskell Server Pages
Using Haskell as a server-side scripting language, extended to allow embedded XML/XHTML fragments in Haskell code.
HASP is a fork of Niklas Broberg?s Haskell Server Pages. Changes includes:
  • support for all GHC extensions
  • front-end based on FastCGI instead of its own web server
  • minor bug fixes and performance tuning.
Generative Implementation Strategies for Data-Centric Web Applications
Generic presentation layer abstractions of administrative web applications are the central theme of this thesis. The domain-engineering approach results in a framework to support user interfaces generated from high-level descriptions. A domain-specific language describes user interfaces. The [ Haskell-based generator] transforms these descriptions to user interfaces implemented with JavaScript and XHTML.
WebFunctions is a EDSL for developing websites, implemented in Haskell. WebFunctions is a domain specific embedded language for web authoring.
A web services proxy generator for the Haskell functional language, implemented in Haskell and C#. The final purpose is to show that Haskell and functional languages in general can be used as a viable way to the implementation of distributed components and applications, interacting with services implemented in different languages and/or platforms.
Hajax is a proposed tool to develop Ajax applications (stand-alone Web applications that execute into the browser environment) in Haskell.



Included in the GHC distribution, this is very complete URI parser implementing the syntax specified by RFC3986. Based on Graham Klyne's URI handling implementation from the W3C uri mailing list, and since updated for compatibility with both GHC and Hugs. Highly recommended for parsing URLs and any other kind of URI.


HaXml: utilities for using XML with Haskell
Includes an XML parser, an HTML parser, a pretty-printer, a combinator library for generic XML transformations, and two Haskell>-<XML converters using type-based translation.
HXT: Haskell XML Toolbox
The Haskell XML Toolbox (HXT) bases on the ideas of HaXml and HXML, but introduces a more general approach based on arrows for processing XML with Haskell. The Haskell XML Toolbox uses a generic data model for representing XML documents, including the DTD subset and the document subset, in Haskell. It contains an XML parser, an HTML parser, namespaces are supported, XPath expressions can be used for selecting and transforming parts of a document. Validation can be performed with respect to DTDs and RelaxNG schema. A Getting started page describes the programming model behind HXT and gives some simple examples.
A little wrapper to HaXML: It provides a more natural data structure for representing XML trees, and converts between HaXML and its custom tree structure. The operations on the tree need not to be of type (a -> [a]), thus using these functions is a bit more type safe.
2LT: Two-Level Transformation
A two-level data transformation consists of a type-level transformation of a data format coupled with value-level transformations of data instances corresponding to that format. Examples of two-level data transformations include XML schema evolution coupled with document migration, and data mappings used for interoperability and persistence. A library of two-level transformation combinators. These combinators are used to compose transformation systems which, when applied to an input type, produce an output type, together with the conversion functions that mediate between input and out types. Front-ends for XML and SQL. These front-ends support (i) reading a schema, (ii) applying a two-level transformation system to produce a new schema, (iii) convert a document/database corresponding to the input schema to a document/database corresponding to the output schema, and vice versa. Referential constraints and primary key information are propagated through the schema transformation.
A direct Haskell embedding of SXML


The Haskell Html Library by Andy Gill
This library is a collection of combinators, allowing your Haskell programs to generate HTML. It is available in the standard libraries as Text.Html.
XHtml library
This is a version of Text.Html, modified to produce XHTML 1.0 Transitional.
Vieux: A Nevow implementation
Vieux is a html-template system for Haskell. The basic idea is to define a xhtml template which is used to generate a xhtml document by Vieux.


Simple Library for writing CGI programs. This version of the library is for systems with version 2.0 or greater of the network package. This includes GHC 6.6 and later. Features include:
  • Access to CGI parameters (e.g. form input) from both GET and POST requests.
  • Access to CGI environment variables.
  • Ability to set arbitrary response headers.
  • Support for HTTP cookies.
  • Efficient file upload support.
  • Wrapper functions for compatibility with the former Network.CGI module.
FastCGI library
A library for using NewCGI programs with FastCGI.


HaXR - the Haskell XML-RPC library
An XML-RPC client and server library. XML-RPC is "remote procedure calling using HTTP as the transport and XML as the encoding. XML-RPC is designed to be as simple as possible, while allowing complex data structures to be transmitted, processed and returned."
HAIFA is an implementation of parts of the web-service architecture in Haskell. Notably it includes an XML serializer, a partial implementation of XML Schema and SOAP/1.1.
This package allows Haskell programmers to write CORBA clients and servers using the MICO open-source CORBA implementation. It defines a Haskell language mapping for CORBA, and includes an IDL compiler which generates Haskell stub and skeleton modules from IDL files.

This page contains a list of libraries and tools in a certain category. For a comprehensive list of such pages, see Applications and libraries.