haskell-utils(1)

haskell-utils1

Utility for managing haskell compilers

Usage

haskell-utils [{--help | -h | --version | -v}]

haskell-utils [-e] --add-compiler PATH_TO_COMPILER TYPE VERSION

haskell-utils [-e] --remove-compiler PATH_TO_COMPILER

haskell-utils [-e] --add-trigger IDENT TYPE TRIGGER

haskell-utils [-e] --add-untrigger IDENT TYPE TRIGGER

haskell-utils [-e] --remove-triggers IDENT

Overview

haskell-utils allows compilers and tools that like to know about compilers to register themselves so the latter can be informed about the addition and removal of the former.

Options

PATH_TO_COMPILER is the path to the compiler, e.g. /usr/bin/ghc6
TYPE is GHC | NHC | HUGS | Other.
IDENT is a string uniquely identifying the trigger owner.
TRIGGER is the command to be run when the trigger happens. %% is replaced with % and %p with the path to the compiler.

--help, -h

Show summary of options.

--version, -v

Print version information on standard output then exit successfully.

-e

If a program called fails, or if we are asked to remove something that doesn't exist from our database, fail.

--add-compiler PATH_TO_COMPILER TYPE VERSION

Registers the compiler at PATH_TO_COMPILER as being of the given type and version. For example, “haskell-utils --add-compiler /usr/bin/ghc6 GHC 6.0.1”.

--remove-compiler PATH_TO_COMPILER

Unregisters compilers added with --add-compiler, e.g. “haskell-utils --add-compiler /usr/bin/ghc6”.

--add-trigger IDENT TYPE TRIGGER

Add a trigger. The TRIGGER will be executed as a command whenever a new compiler of type TYPE is registered. Additionally it will be run for all registered compilers of the appropriate type when the trigger itself is added. Any occurence of %% will be replaced by % and %p by the compiler path in TRIGGER. The IDENT is just a string unique to the installing package so triggers can be removed.

--add-untrigger IDENT TYPE TRIGGER

The same as --add-untrigger but called when compilers are removed rather than added.

--remove-triggers IDENT

Remove all triggers with identifier IDENT.

Files

/var/lib/haskell-utils/compilers

Author

This manual page was written by Ian Lynagh <[email protected]>.

From haskell-utils 1.6 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.