Personal tools

Applications and libraries

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
m (Remove extra link to hackage, I think new users will find it now.)
(Explain Haskell library collections.)
Line 1: Line 1:
__NOTOC__
 
 
[[Category:Libraries]] [[Category:Tools]]
 
[[Category:Libraries]] [[Category:Tools]]
   
   
== 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.
 
   
 
== Haskell library collections ==
 
== Haskell library collections ==
  +
These are Haskell library collections in increasing order of size.
   
In increasing order of size:
+
=== 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.
   
* [http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html Haskell Prelude].
+
=== The Haskell 2010 Libraries ===
* The Haskell [[Language and library specification]] defines basic, portable functionality.
+
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.
** Changes to these libraries are handled by the [http://hackage.haskell.org/trac/haskell-prime/ Haskell'] process.
 
* The [http://www.haskell.org/ghc/docs/latest/html/libraries/index.html The GHC boot libraries], which come with GHC, are generally an improved and expanded version of the Haskell 98 libraries, in the hierarchical namespace.
 
** 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
 
* The [http://hackage.haskell.org/packages/archive/pkg-list.html Hackage] database aims to be a comprehensive a collection of released Haskell packages.
 
   
== Hackage ==
+
Some of the most used Haskell modules are in this bunch, for example:
  +
[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].
   
New libraries are packaged and distributed via [http://hackage.haskell.org Hackage]. Start on Hackage if you are looking for some functionality that did not come installed with the [http://hackage.haskell.org/platform/ Haskell Platform].
+
In GHC most of these are in the 'base' package.
  +
  +
=== 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].
  +
  +
Examples of libraries, or packages, that belong to this group are:
  +
[http://hackage.haskell.org/package/bytestring bytestring],
  +
[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 ===
  +
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.
  +
  +
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].
  +
  +
=== Hackage ===
  +
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.
  +
  +
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].
   
 
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 79: Line 77:
 
* [http://www.cs.york.ac.uk/fp/libraries/layoutSM.html Proposal 2]
 
* [http://www.cs.york.ac.uk/fp/libraries/layoutSM.html Proposal 2]
   
== Libraries for other languages ==
+
=== 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
 
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

Revision as of 22:07, 11 October 2010



Contents

1 Haskell library collections

These are Haskell library collections in increasing order of size.

1.1 Haskell Prelude

The most import 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.

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. Changes to these libraries are handled by the Haskell' process.

Some of the most used Haskell modules are in this bunch, for example: Control.Monad, Data.List and System.IO.

In GHC most of these are in the 'base' package.

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.

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

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 above libraries

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. The extra libraries have been thoroughly tested and found industry worthy to be included as extra batteries.

Examples are: Monad transformer library, parallel and QuickCheck.

1.5 Hackage

The Hackage database aims to be a comprehensive a 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 installed with any of the above mentioned libraries when you installed the Haskell Platform.

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

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.

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.

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