Personal tools

Applications and libraries

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
(Explain Haskell library collections.)
(Haskell applications and libraries: Generic programming was listed twice in the same list.)
 
(13 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
[[Category:Libraries]] [[Category:Tools]]
 
[[Category:Libraries]] [[Category:Tools]]
   
+
The number of Haskell packages is growing rapidly. The section 'Haskell library collections' gives an ordering of all these packages by relative importance. In the section 'Haskell applications and libraries' an ordering by category is given. Finally some guidelines for developers of new packages are presented.
   
 
== Haskell library collections ==
 
== Haskell library collections ==
These are Haskell library collections in increasing order of size.
 
   
 
=== Haskell Prelude ===
 
=== Haskell Prelude ===
The most import Haskell library is called the [http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html Prelude]. It is implicitly imported by default, and includes the most commonly used functions. Make sure you know what they do and how to use them.
+
The most important Haskell library is called the [http://www.haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html Prelude]. It is implicitly imported by default, and includes the most commonly used functions. Make sure you know what they do and how to use them effectively.
   
=== The Haskell 2010 Libraries ===
+
=== The Haskell 2010 libraries ===
The Haskell 2010 [[Language and library specification]] defines a set of [http://www.haskell.org/onlinereport/haskell2010/haskellpa2.html libraries] with basic functionality which all Haskell implementations should support. Changes to these libraries are handled by the [http://hackage.haskell.org/trac/haskell-prime/ Haskell'] process.
+
The Haskell 2010 [[Language and library specification]] defines a set of [http://www.haskell.org/onlinereport/haskell2010/haskellpa2.html libraries] with basic functionality which all Haskell implementations should support, including the Prelude. Changes to these libraries are handled by the [http://hackage.haskell.org/trac/haskell-prime/ Haskell'] process.
   
Some of the most used Haskell modules are in this bunch, for example:
+
Haskell modules that almost everybody uses are in this group, for example:
 
[http://www.haskell.org/onlinereport/haskell2010/haskellch13.html Control.Monad], [http://www.haskell.org/onlinereport/haskell2010/haskellch20.html Data.List]
 
[http://www.haskell.org/onlinereport/haskell2010/haskellch13.html Control.Monad], [http://www.haskell.org/onlinereport/haskell2010/haskellch20.html Data.List]
and [http://www.haskell.org/onlinereport/haskell2010/haskellch41.html System.IO].
+
and [http://www.haskell.org/onlinereport/haskell2010/haskellch41.html System.IO]. In GHC these are all grouped into the 'base' package.
 
In GHC most of these are in the 'base' package.
 
   
 
=== The GHC standard libraries ===
 
=== The GHC standard libraries ===
GHC comes with an expanded version of the Haskell 2010 libraries. Together these are called the [http://www.haskell.org/ghc/docs/latest/html/libraries/index.html GHC standard libraries].
+
GHC comes with an expanded version of the Haskell 2010 libraries. Together these are called the [http://www.haskell.org/ghc/docs/latest/html/libraries/index.html GHC standard libraries]. Changes to these libraries are handled by the package maintainer if one exists, or the [[Library submissions]] process if not. [http://www.haskell.org/hoogle/ Hoogle] - the Haskell API Search Engine - indexes the [http://www.haskell.org/ghc/docs/latest/html/libraries/index.html GHC standard libraries].
   
 
Examples of libraries, or packages, that belong to this group are:
 
Examples of libraries, or packages, that belong to this group are:
 
[http://hackage.haskell.org/package/bytestring bytestring],
 
[http://hackage.haskell.org/package/bytestring bytestring],
 
[http://hackage.haskell.org/package/containers containers] and [http://hackage.haskell.org/package/Win32 Win32].
 
[http://hackage.haskell.org/package/containers containers] and [http://hackage.haskell.org/package/Win32 Win32].
 
Changes to these libraries are handled by the package maintainer if one exists, or the [[Library submissions]] process if not.
 
 
[http://haskell.org/hoogle Hoogle] - the Haskell API Search Engine - indexes the above libraries
 
   
 
=== Haskell Platform libraries ===
 
=== Haskell Platform libraries ===
On top of the GHC standard libraries, the [http://hackage.haskell.org/platform Haskell Platform] comes preinstalled with some additional packages that together form the [http://hackage.haskell.org/platform/contents.html#packages-and-documentation Haskell Platform libraries]. The extra libraries have been thoroughly tested and found industry worthy to be included as extra batteries.
+
On top of the GHC standard libraries, the [http://www.haskell.org/platform/ Haskell Platform] comes preinstalled with some additional packages that together form the [http://www.haskell.org/platform/contents.html#packages-and-documentation Haskell Platform libraries]. These libraries have been thoroughly tested before being included. The addition of these libraries with the [http://www.haskell.org/platform/ Haskell Platform] is what makes it 'batteries included'.
   
Examples are: [http://hackage.haskell.org/package/mtl Monad transformer library], [http://hackage.haskell.org/package/parallel parallel] and [http://hackage.haskell.org/package/QuickCheck QuickCheck].
+
Examples of included packages are: [http://hackage.haskell.org/package/mtl Monad transformer library], [http://hackage.haskell.org/package/parallel parallel] and [http://hackage.haskell.org/package/QuickCheck QuickCheck].
   
=== Hackage ===
+
=== The Hackage database ===
The [http://hackage.haskell.org/packages/archive/pkg-list.html Hackage] database aims to be a comprehensive a collection of released Haskell packages, similar to Perl's CPAN or Python's PyPI.
+
[http://hackage.haskell.org/packages/archive/pkg-list.html Hackage] is the final layer of the Haskell library collections. [http://hackage.haskell.org/packages/archive/pkg-list.html Hackage] aims to provide a comprehensive collection of released Haskell packages, similar to Perl's CPAN or Python's PyPI.
   
Start on [http://hackage.haskell.org/packages/archive/pkg-list.html Hackage] if you are looking for some functionality that did not come installed with any of the above mentioned libraries when you installed the [http://hackage.haskell.org/platform/ Haskell Platform].
+
Start on [http://hackage.haskell.org/packages/archive/pkg-list.html Hackage] if you are looking for some functionality that did not come preinstalled with the [http://www.haskell.org/platform/ Haskell Platform].
   
 
See also the [[Hackage|Hackage wiki page]] and [[Cabal/How to install a Cabal package | how to install a Cabal package]].
 
See also the [[Hackage|Hackage wiki page]] and [[Cabal/How to install a Cabal package | how to install a Cabal package]].
Line 54: Line 49:
 
* [[/Extended Haskell/]]
 
* [[/Extended Haskell/]]
 
* [[/Games/]]
 
* [[/Games/]]
* [[/Genetic programming/]]
+
* [[/Generic programming/]]
 
* [[/GUI libraries|Graphical User Interface (GUI) Libraries]]
 
* [[/GUI libraries|Graphical User Interface (GUI) Libraries]]
 
* [[/Graphics/]]
 
* [[/Graphics/]]
Line 63: Line 58:
 
* [[/Operating system/|Operating systems and systems programming]] (also emulators)
 
* [[/Operating system/|Operating systems and systems programming]] (also emulators)
 
* [[/Program development/]]
 
* [[/Program development/]]
* [[/Robots/]]
+
* [[/Robotics/]]
 
* [[/Theorem provers/]]
 
* [[/Theorem provers/]]
 
* [[/Interfacing other languages|Tools for interfacing with other languages]]
 
* [[/Interfacing other languages|Tools for interfacing with other languages]]
Line 70: Line 65:
 
Other places to look include:
 
Other places to look include:
 
* The [[Library]] hierarchy page on this wiki.
 
* The [[Library]] hierarchy page on this wiki.
* The Haskell [http://haskell.org/communities/ community reports].
+
* The Haskell [[Haskell Communities and Activities Report|community reports]].
 
* The [http://www.haskell.org/mailman/listinfo/libraries mailing list] for discussion of issues related to libraries.
 
* The [http://www.haskell.org/mailman/listinfo/libraries mailing list] for discussion of issues related to libraries.
   
Line 83: Line 78:
 
* [[How to write a Haskell program|How to write a new Haskell library]]
 
* [[How to write a Haskell program|How to write a new Haskell library]]
 
* [[Library submissions|How to propose changes to the standard libraries]]
 
* [[Library submissions|How to propose changes to the standard libraries]]
* [http://pupeno.com/2006/12/12/the-lambda-revolution-v/ Creating a .deb from a Haskell Cabal package]
+
* [http://web.archive.org/web/20071011215053/http://pupeno.com/2006/12/12/the-lambda-revolution-v/ Creating a .deb from a Haskell Cabal package] (in the Web Archive)
* [http://cgi.cse.unsw.edu.au/~dons/blog/2006/12/11 Creating a Haskell library by example]
 
 
* Guide to making standard [[Library submissions|library submissions]]
 
* Guide to making standard [[Library submissions|library submissions]]
* If you notice the library documentation is lacking, or could be improved, [http://haskell.org/haskellwiki/Improving_library_documentation please report it here]
+
* If you notice the library documentation is lacking, or could be improved, [http://www.haskell.org/haskellwiki/Improving_library_documentation please report it here]
 
* [http://www.google.com/codesearch Google Code Search] can help identify common idioms, improving your API.
 
* [http://www.google.com/codesearch Google Code Search] can help identify common idioms, improving your API.
 
* [[Future projects]], more projects people would like.
 
* [[Future projects]], more projects people would like.
* Project activity for some of the larger Haskell projects is graphed [http://www.cse.unsw.edu.au/~dons/images/commits/community/ here].
 
 
* [[Cabal]], The Common Architecture for Building Applications and Libraries, is a framework for packaging, building, and installing any tool developed in the Haskell language.
 
* [[Cabal]], The Common Architecture for Building Applications and Libraries, is a framework for packaging, building, and installing any tool developed in the Haskell language.
 
* [[Hack-Nix]], a set of tools based on the [http://nixos.org Nix] package manager to manage multiple setups to build a project
 
* [[Hack-Nix]], a set of tools based on the [http://nixos.org Nix] package manager to manage multiple setups to build a project
Line 102: Line 96:
 
If you are thinking about designing a new library for Haskell, you ought to look what has been done in other languages. Here are standard library definitions for
 
If you are thinking about designing a new library for Haskell, you ought to look what has been done in other languages. Here are standard library definitions for
   
* [http://www.cs.ru.nl/~clean/Download/Download_Libraries/body_download_libraries.html Clean]
+
* [http://wiki.clean.cs.ru.nl/Libraries Clean]
* [http://www.standardml.org/Basis Standard ML]
+
* [http://www.standardml.org/Basis/ Standard ML]
 
* [http://caml.inria.fr/pub/docs/manual-ocaml/manual034.html Objective Caml]
 
* [http://caml.inria.fr/pub/docs/manual-ocaml/manual034.html Objective Caml]
 
* [http://srfi.schemers.org/ Scheme]
 
* [http://srfi.schemers.org/ Scheme]

Latest revision as of 18:53, 9 February 2013


The number of Haskell packages is growing rapidly. The section 'Haskell library collections' gives an ordering of all these packages by relative importance. In the section 'Haskell applications and libraries' an ordering by category is given. Finally some guidelines for developers of new packages are presented.

Contents

[edit] 1 Haskell library collections

[edit] 1.1 Haskell Prelude

The most important Haskell library is called the Prelude. It is implicitly imported by default, and includes the most commonly used functions. Make sure you know what they do and how to use them effectively.

[edit] 1.2 The Haskell 2010 libraries

The Haskell 2010 Language and library specification defines a set of libraries with basic functionality which all Haskell implementations should support, including the Prelude. Changes to these libraries are handled by the Haskell' process.

Haskell modules that almost everybody uses are in this group, for example: Control.Monad, Data.List and System.IO. In GHC these are all grouped into the 'base' package.

[edit] 1.3 The GHC standard libraries

GHC comes with an expanded version of the Haskell 2010 libraries. Together these are called the GHC standard libraries. Changes to these libraries are handled by the package maintainer if one exists, or the Library submissions process if not. Hoogle - the Haskell API Search Engine - indexes the GHC standard libraries.

Examples of libraries, or packages, that belong to this group are: bytestring, containers and Win32.

[edit] 1.4 Haskell Platform libraries

On top of the GHC standard libraries, the Haskell Platform comes preinstalled with some additional packages that together form the Haskell Platform libraries. These libraries have been thoroughly tested before being included. The addition of these libraries with the Haskell Platform is what makes it 'batteries included'.

Examples of included packages are: Monad transformer library, parallel and QuickCheck.

[edit] 1.5 The Hackage database

Hackage is the final layer of the Haskell library collections. Hackage aims to provide a comprehensive collection of released Haskell packages, similar to Perl's CPAN or Python's PyPI.

Start on Hackage if you are looking for some functionality that did not come preinstalled with the Haskell Platform.

See also the Hackage wiki page and how to install a Cabal package.

[edit] 2 Haskell applications and libraries

Applications, libraries and tools for Haskell or written in Haskell have been classified below, but you should check Hackage for the latest list.

Other places to look include:

You can also propose and vote on new libraries that you'd like on reddit, and look at our past Summer of Code proposals.

[edit] 3 Guidelines for developers

(thumbnail)
Built with Cabal

Developer guides:

Proposals for the module name space layout that can be used to guide the construction of new libraries.

[edit] 3.1 Libraries for other languages

If you are thinking about designing a new library for Haskell, you ought to look what has been done in other languages. Here are standard library definitions for