Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > ae5bf87b062b7a48bdb0eca46c663ced > scriptlet

ghc-compiler-7.0.2-16.8.fc15.i686.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