haskell-utils

Langue: en

Version: 304211 (debian - 07/07/09)

Section: 8 (Commandes administrateur)

NAME

haskell-utils - utility for managing Haskell compilers

SYNOPSIS

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

DESCRIPTION

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 Haskell Utils Version 1.10

Copyright (C) 2003, 2004, 2007 Ian Lynagh

AUTHOR

This manual page was written by Ian Lynagh <igloo@debian.org>.