The hub package

[Tags: bsd3, program]

This package provides a utility for multiplexing multiple GHC and Haskell Platform installations, each selected by an environment variable or a work-tree configuration file.

The package also provides flexible development sandboxes (aka hubs) into which packages can be installed and subsequently erased. Commands are provided for (re)naming, annotating, replicating, swapping, archiving, locking and removing hubs. E.g.,

 hub init

will create a hub based on the default GHC installation and associate the current directory with it. Any use of cabal or the GHC tools within this directory or it's descendants will work with correct tool chain and the private user-package database belonging to the hub.

The following would (i) download hexpat (ii) install it in a named hexpat-test hub connected to the 2011.2.0.1 Haskell Platform, (iii) build the hexpat test suite with the same hub, and (iv) finally run the test suite.

cabal unpack hexpat
cd hexpat-*
hub init -s 2011.2.0.1 hexpat-test
cabal install
cd test
cabal install --bindir=.
./testsuite

This same hexpat-test hub can be shared with other work trees.

The tool is intended to be provided as part of a distribution (like the JustHub Enterprise Linux distribution) but it can be configured with existing stock GHC installations without too much effort. Once installed and configured the hub command inter-operates seamlessly with the GHC tools (ghc, ghci, ghc-pkg, etc.) and Cabal-install.

For installation instructions, introductory material, FAQs, etc., see the home page http://justhub.org.


[Skip to ReadMe]

Properties

Versions0.0, 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.9.0.1
Change logNone available
Dependenciesarray, base (>=4.0 && <5), bytestring, containers, directory, fgl, filepath, hexpat (>=0.19), process, regex-compat, unix, utf8-string [details]
LicenseBSD3
CopyrightChris Dornan, 2011-2013
AuthorChris Dornan <chris@chrisdornan.com>
MaintainerChris Dornan <chris@chrisdornan.com>
StabilityBeta
CategoryDevelopment, Distribution
Home pagehttp://justhub.org
Bug trackerhttps://github.com/haskell-hub/hub-src/issues
Source repositoryhead: git clone git@github.com:cdornan/hub.git
Executableshub
UploadedSun Sep 8 22:02:22 UTC 2013 by ChrisDornan
Downloads913 total (55 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Successful builds reported [all 1 reports]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for hub-1.2.0

This package provides a utility for multiplexing multiple
GHC and Haskell Platform installations, the installation
being selected by environment variable or a hidden configuraton
file or in the current working directory or one of its parents.

Thye utility also allows users to build sandboxes (called hubs)
which may link to one of the the GHC installtions installed on
the local system, and extend them with packages private to the hub.

Utilities are also provided for erasing packages from an hub and
annotating, duplicating, renaming, locking, archiving and recovering
hubs.