HS_DIR=usr/share/haskell/haskell-iconv

post_install() {
  $HS_DIR/register.sh
  post_remove
}

pre_upgrade() {
  $HS_DIR/unregister.sh
}

post_upgrade() {
  post_install
}

pre_remove() {
  pre_upgrade
}

post_remove() {
  (cd usr/share/doc/ghc/html/libraries; ./gen_contents_index)
}
