Sophie

Sophie

distrib > Fedora > 13 > x86_64 > media > updates > by-pkgid > c22be3efe99aa0426ed6c40b13674e56 > scriptlet

ghc-6.12.1-7.fc13.x86_64.rpm

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

POSTTRANS

/bin/sh
# (posttrans to make sure any old libs have been removed first)
/usr/bin/ghc-pkg recache --no-user-package-conf || :