#! /bin/sh
exec > /dev/null
/usr/local/bin/ghc-pkg unregister cgi-3001.1.1
/usr/local/bin/ghc-pkg unregister network-2.0.1
/usr/local/bin/ghc-pkg unregister parsec-2.0
/usr/local/bin/ghc-pkg unregister xhtml-3000.0.2
/usr/local/bin/ghc-pkg unregister haskell-src-1.0.1
/usr/local/bin/ghc-pkg unregister fgl-5.4.1
/usr/local/bin/ghc-pkg unregister mtl-1.0.1
/usr/local/bin/ghc-pkg unregister QuickCheck-1.0.1
/usr/local/bin/ghc-pkg unregister HUnit-1.1.1
/usr/local/bin/ghc-pkg unregister html-1.0.1
/usr/local/bin/ghc-pkg unregister filepath-1.0
/usr/local/bin/ghc-pkg unregister time-1.1.1
/usr/local/bin/ghc-pkg unregister ghc-6.6.1
/usr/local/bin/ghc-pkg unregister template-haskell-2.1
/usr/local/bin/ghc-pkg unregister readline-1.0
/usr/local/bin/ghc-pkg unregister unix-2.1
/usr/local/bin/ghc-pkg unregister Cabal-1.1.6.2
/usr/local/bin/ghc-pkg unregister regex-compat-0.71
/usr/local/bin/ghc-pkg unregister regex-posix-0.71
/usr/local/bin/ghc-pkg unregister regex-base-0.72
/usr/local/bin/ghc-pkg unregister haskell98-1.0
/usr/local/bin/ghc-pkg unregister stm-2.0
/usr/local/bin/ghc-pkg unregister OpenGL-2.2.1
/usr/local/bin/ghc-pkg unregister HGL-3.1.1
/usr/local/bin/ghc-pkg unregister X11-1.2.1
/usr/local/bin/ghc-pkg unregister base-2.1.1
/usr/local/bin/ghc-pkg unregister rts-1.0
rm -f /usr/local/lib/ghc/package.conf.old
# If no packages are left, just remove the registry.
if echo '[]' | cmp -s - /usr/local/lib/ghc/package.conf; then
rm -f /usr/local/lib/ghc/package.conf
fi
