summaryrefslogtreecommitdiffstats
path: root/haskell/POST_REMOVE
blob: 250a26897117c357001e229e383df00283d9bebd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
if [ -z "$PACKAGE" ] ; then
  PACKAGE=${SPELL#haskell-}
fi &&
#
# we must not unregister packages that are installed by the ghc spell
#
if [[ $PACKAGE != "Cabal" ]] \
  && [[ $PACKAGE != "array" ]] \
  && [[ $PACKAGE != "base" ]] \
  && [[ $PACKAGE != "binary" ]] \
  && [[ $PACKAGE != "bytestring" ]] \
  && [[ $PACKAGE != "containers" ]] \
  && [[ $PACKAGE != "deepseq" ]] \
  && [[ $PACKAGE != "directory" ]] \
  && [[ $PACKAGE != "filepath" ]] \
  && [[ $PACKAGE != "ghc" ]] \
  && [[ $PACKAGE != "ghc-boot" ]] \
  && [[ $PACKAGE != "ghc-boot-th" ]] \
  && [[ $PACKAGE != "ghc-compact" ]] \
  && [[ $PACKAGE != "ghci" ]] \
  && [[ $PACKAGE != "ghc-prim" ]] \
  && [[ $PACKAGE != "haskeline" ]] \
  && [[ $PACKAGE != "hpc" ]] \
  && [[ $PACKAGE != "hoopl" ]] \
  && [[ $PACKAGE != "hpc" ]] \
  && [[ $PACKAGE != "integer-gmp" ]] \
  && [[ $PACKAGE != "mtl" ]] \
  && [[ $PACKAGE != "parsec" ]] \
  && [[ $PACKAGE != "pretty" ]] \
  && [[ $PACKAGE != "process" ]] \
  && [[ $PACKAGE != "stm" ]] \
  && [[ $PACKAGE != "template-haskell" ]] \
  && [[ $PACKAGE != "terminfo" ]] \
  && [[ $PACKAGE != "text" ]] \
  && [[ $PACKAGE != "time" ]] \
  && [[ $PACKAGE != "transformers" ]] \
  && [[ $PACKAGE != "unix" ]] \
  && [[ $PACKAGE != "xhtml" ]] \
  ; then
    message "${MESSAGE_COLOR}Unregistering package with ghc-pkg...${DEFAULT_COLOR}" &&
    ghc-pkg unregister --force --global $PACKAGE
fi