pre_upgrade() {
  echo '==> Unregistering cabalized packages...'
  [[ -d /ucrt64/share/haskell ]] && find /ucrt64/share/haskell -maxdepth 2 -name 'unregister.sh' -exec {} \;
  echo '==> Done.'
}

post_upgrade() {
  echo '==> All cabalized packages need to be reinstalled now.'
  echo '==> See /ucrt64/share/haskell/ for a tentative list of affected packages.'
}
