#!/bin/sh -e dir="${dotgardir}/haskell" if [ -e "$dir" ]; then echo " ==> Registering Haskell packages" for conf in `find $dir -name '*.conf' | sort`; do ghc-pkg --global update $conf done for pkg in `ghc-pkg --global check --simple-output`; do echo " ==> Unregistering Haskell package $pkg" ghc-pkg --global unregister --force $pkg done fi