[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = MINGW_PREFIX/share/doc/ghc/html/libraries/*
Target = !MINGW_PREFIX/share/doc/ghc/html/libraries/index.html

[Action]
Description = Rebuilding Haskell doc index...
When = PostTransaction
Exec = /bin/bash -c "cd /MINGW_PREFIX/share/doc/ghc/html/libraries && ./gen_contents_index"
Depends = ghc
Depends = bash
