summaryrefslogtreecommitdiff
path: root/testing/ghc/ghc.install
blob: 7d56083bc567484af19ad584b62fc601975069cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
pkgname=ghc

pre_upgrade() {
    cat << EOF
    ==> Unregistering cabalized packages...
EOF
    cd /usr/share/haskell/ && (for a in *; do ghc-pkg unregister --force $a &> /dev/null; done; cd - > /dev/null )
    cat << EOF
    ==> Done.
EOF
    
}

post_upgrade() {
    cat << EOF
    ==> All cabalized and yaourt-installed packages need to be reinstalled now.
    ==> See /usr/share/haskell/ and ghc-pkg list --user for a tentative list of affected packages.
EOF
}