PREUN
/bin/sh
if [ "$1" = 0 ]; then
update-alternatives --remove runhaskell /usr/bin/runghc
update-alternatives --remove hsc2hs /usr/bin/hsc2hs-ghc
fi
POSTIN
/bin/sh
# Alas, GHC, Hugs, and nhc all come with different set of tools in
# addition to a runFOO:
#
# * GHC: hsc2hs
# * Hugs: hsc2hs, cpphs
# * nhc: cpphs
#
# Therefore it is currently not possible to use --slave below to form
# link groups under a single name 'runhaskell'. Either these tools
# should be disentangled from the Haskell implementations, or all
# implementations should have the same set of tools. *sigh*
update-alternatives --install /usr/bin/runhaskell runhaskell \
/usr/bin/runghc 500
update-alternatives --install /usr/bin/hsc2hs hsc2hs \
/usr/bin/hsc2hs-ghc 500