Skip to content

hugs isn't supported anymore

Summary

 > [12/13] RUN cd haskell-ide-engine && stack ./install.hs hie-8.10:                                                                             
#15 484.3 rts-1.0: Warning: .:464:1: The field "hugs-options" is deprecated. hugs isn't supported anymore                                        
#15 507.6 ghc: panic! (the 'impossible' happened)                                                                                                
#15 507.6   (GHC version 8.6.5 for x86_64-unknown-linux):                                                                                        
#15 507.6 	Prelude.chr: bad argument: 1526726659
#15 507.6 
#15 507.6 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug
#15 507.6 
#15 507.6 
#15 507.6 --  While building simple Setup.hs (scroll up to its section to see the error) using:
#15 507.6       /home/haskell/.stack/programs/x86_64-linux/ghc-tinfo6-8.6.5/bin/ghc-8.6.5 -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-2.4.0.1 /home/haskell/.stack/setup-exe-src/setup-mPHDZzAJ.hs /home/haskell/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs -o /home/haskell/.stack/setup-exe-cache/x86_64-linux-tinfo6/tmp-Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5
#15 507.6     Process exited with code: ExitFailure 1
------
executor failed running [/bin/sh -c cd haskell-ide-engine && stack ./install.hs hie-8.10]: exit 
code: 1
marcpawl@Marcs-MacBook-Air haskell % 

Write a brief description of the issue.

Steps to reproduce

contents of start.sh

#!/bin/bash -ex
docker kill haskell || true
docker rm haskell || true 
cd $(dirname $0)
docker build \
  -t haskell:9.2.2-$(id -u -n) \
  --build-arg USER=$(id -u -n) \
  --build-arg UID=$(id -u) \
  docker
cd ..
docker run \
  -it \
   -u $(id -u):$(id -g) \
   --rm \
   --name haskell \
   --hostname haskell \
   -v `pwd`:/home/haskell/src \
   haskell:9.2.2-$(id -u -n)

contents of docker/Dockerfile

FROM debian:latest

RUN apt-get update -y
RUN apt-get install -y vim  git \
 build-essential curl libffi-dev libffi7 \
 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5 \
 make

ARG USER UID
RUN useradd --create-home --home /home/haskell --uid ${UID}  haskell
WORKDIR /home/haskell
USER haskell


RUN curl -o ghcup.sh --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org
RUN chmod +x ghcup.sh
#    BOOTSTRAP_HASKELL_GHC_VERSION=9.0.2
RUN  BOOTSTRAP_HASKELL_NONINTERACTIVE=1 \
    BOOTSTRAP_HASKELL_INSTALL_STACK=1 \
    BOOTSTRAP_HASKELL_INSTALL_HLS=1 \
    ./ghcup.sh
RUN echo 'PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH"' >> ~/.bashrc
ENV PATH="/home/haskell/.cabal/bin:/home/haskell/.ghcup/bin:$PATH"
RUN stack install hlint

RUN git clone https://github.com/haskell/haskell-ide-engine --recurse-submodules
RUN cd haskell-ide-engine && stack ./install.hs hie-8.10
RUN cd haskell-ide-engine && stack ./install.hs build-doc-8.10

Execute

./start.sh

Expected behavior

environment setup ind docker container

Environment

Mac OS

Edited by Marc Pawlowsky
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information