---
name: "haskell-utils"
section: "1"
platform: "linux"
package: "haskell-utils"
version: "1.6"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/haskell-utils"
---

# haskell-utils(1)

utility for managing Haskell compilers

## 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*

## COPYRIGHT

Haskell Utils Version 1.6

Copyright (C) 2003, 2004 Ian Lynagh

## AUTHOR

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