[Trigger]
Type = File
Operation = Upgrade
Operation = Remove
Target = MINGW_PREFIX/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
