1 FROM phadej/ghc:8.0.2-bionic
4 RUN mkdir -p /root/.cabal/bin && \
5 curl -L https://github.com/haskell-hvr/cabal-plan/releases/download/v0.6.2.0/cabal-plan-0.6.2.0-x86_64-linux.xz > cabal-plan.xz && \
6 echo "de73600b1836d3f55e32d80385acc055fd97f60eaa0ab68a755302685f5d81bc cabal-plan.xz" | sha256sum -c - && \
7 xz -d < cabal-plan.xz > /root/.cabal/bin/cabal-plan && \
8 rm -f cabal-plan.xz && \
9 chmod a+x /root/.cabal/bin/cabal-plan
13 RUN cabal v2-update --index-state="2020-06-12T23:36:15Z"
15 # We install happy, so it's in the store; we (hopefully) don't use it directly.
16 RUN cabal v2-install happy --constraint 'happy ^>=1.19.12'
18 # Install some other dependencies
19 # Remove $HOME/.ghc so there aren't any environments
20 RUN cabal v2-install -w ghc-8.0.2 --lib \
35 optparse-applicative \
51 --constraint="rere -rere-cfg" \
52 --constraint="these -assoc" \
53 --constraint="bytestring installed" \
54 --constraint="binary installed" \
55 --constraint="containers installed" \
56 --constraint="deepseq installed" \
57 --constraint="directory installed" \
58 --constraint="filepath installed" \
59 --constraint="pretty installed" \
60 --constraint="process installed" \
61 --constraint="time installed" \
62 --constraint="unix installed" \
63 --constraint="transformers installed" \
69 RUN sh ./validate.sh -w ghc-8.0.2 -v