[Trigger]
Type = File
Operation = Upgrade
Operation = Remove
Target = usr/share/haskell/unregister/*.sh

[Action]
Description = Unregistering Haskell modules...
When = PreTransaction
Exec = /bin/sh -c 'while read -r f; do /bin/sh "/$f" ; done'
Depends = ghc
NeedsTargets
