summarylogtreecommitdiffstats
path: root/ghc.install
diff options
context:
space:
mode:
authorRudy Matela2015-06-13 20:48:51 +0200
committerRudy Matela2015-06-13 20:48:51 +0200
commitbbd09e8fd8350afc3f09b100cb622b6f857cf25d (patch)
tree0aa474c1085e3993b166fc8f9e42d3f65028fe0d /ghc.install
downloadaur-bbd09e8fd8350afc3f09b100cb622b6f857cf25d.tar.gz
Initial import
Diffstat (limited to 'ghc.install')
-rw-r--r--ghc.install10
1 files changed, 10 insertions, 0 deletions
diff --git a/ghc.install b/ghc.install
new file mode 100644
index 000000000000..677656995efe
--- /dev/null
+++ b/ghc.install
@@ -0,0 +1,10 @@
+pre_upgrade() {
+ echo '==> Unregistering cabalized packages...'
+ [[ -d /usr/share/haskell-ghc-7.6 ]] && find /usr/share/haskell-ghc-7.6 -maxdepth 2 -name 'unregister.sh' -exec {} \;
+ echo '==> Done.'
+}
+
+post_upgrade() {
+ echo '==> All cabalized packages need to be reinstalled now.'
+ echo '==> See /usr/share/haskell-ghc-7.6/ and ghc-pkg-7.6 list --user for a tentative list of affected packages.'
+}