# up_trigger every library on every cast to keep package.conf in actual state

if spell_ok $SPELL; then
    message "Every time ghc is rebuilt it overwrites package.conf :("
    message "Figuring out what spells need to be recast, this may take a while."
    for each in $(show_up_depends $SPELL); do
        # Check in the install logs if haskell packages has been installed
        if gaze install $each | grep -q '\.cabal$'; then
            up_trigger $each cast_self 
        fi
    done
fi
