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.
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.
Show summary of options.
Print version information on standard output then exit successfully.
If a program called fails, or if we are asked to remove something that
doesn't exist from our database, fail.
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''.
Unregisters compilers added with
e.g. ``haskell-utils --add-compiler /usr/bin/ghc6''.
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.
The same as
but called when compilers are removed rather than added.