valderman / haste-compiler

A GHC-based Haskell to JavaScript compiler
http://haste-lang.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 109 forks source link

Build fails on latest ghc #428

Open ericctsf opened 4 years ago

ericctsf commented 4 years ago

Dockerfile

FROM haskell:8.10.1-buster
RUN apt-get update && apt-get install -y libghc-bzlib-dev
RUN cabal update
RUN cabal install haste-compile

docker build -t fail .

Results in ===>

Failed to build exe:haste-copy-pkg from haste-compiler-0.2.3.

6 35.34 Build log (

6 35.34 /root/.cabal/logs/ghc-8.10.1/haste-compiler-0.2.3-61ab472b7ee8f6725f2cf3678f71797fc7e90138591226032f20670ab8683b9b.log

6 35.34 ):

6 35.34 Configuring executable 'haste-copy-pkg' for haste-compiler-0.2.3..

6 35.34 Preprocessing executable 'haste-copy-pkg' for haste-compiler-0.2.3..

6 35.34 Building executable 'haste-copy-pkg' for haste-compiler-0.2.3..

6 35.34 [1 of 3] Compiling Control.Shell ( src/Control/Shell.hs, dist/build/haste-copy-pkg/haste-copy-pkg-tmp/Control/Shell.o )

6 35.34

6 35.34 src/Control/Shell.hs:35:3: error:

6 35.34 fail' is not a (visible) method of classMonad'

6 35.34 |

6 35.34 35 | fail err = Shell $ _ -> return $ Left err

6 35.34 | ^^^^

6 35.35 cabal: Failed to build exe:haste-copy-pkg from haste-compiler-0.2.3. See the

WolframKahl commented 4 years ago

Haste requires GHC-7.10.3.