Closed benjamingoldstein closed 3 years ago
Hi,
I believe the problem is that you are pulling in haskell:8
which means, give me the latest haskell 8.* version
.
At the time you ran this, the latest stackage was on ghc 8.8, however, presumably the docker image you loaded was 8.10 thus the version mismatch. Stack inside the haskell docker image is configured to only use pre-install ghc versions so it won't install a missing ghc version for you.
The solution is to be more specific in terms of when haskell image you use. Specifying haskell:8.8
would give you the exact version you want. Although now, latest stackage is on 8.10 so you probably want to use haskell:8.10
.
I'm going to close this as doesn't seem to be an issue with the haskell images. Feel free to comment or reopen (if you can?) if you think there is still a problem.
Cheers
Sorry I just realised this is directly from the 'How to use' section on docker hub. This should be updated..
Should be fixed.
Hi everyone.
I just ran this example successfully:
However the second example does not work. Here is the Dockerfile:
When I run
docker build .
I get this error:I have tried several times with
--system-ghc
, but same error.I've found a similar error on a Japanese stackoverflow question, but I could not follow the translated answer.
https://translate.googleusercontent.com/translate_c?depth=1&hl=en&prev=search&pto=aue&rurl=translate.google.com&sl=ja&sp=nmt4&u=https://ja.stackoverflow.com/questions/70001/no-compiler-found-expected-minor-version-match-with-ghc-8-8-4&usg=ALkJrhhFLe0WPLvjIFnYcS4vbT-87-dqjQ
I am trying to compile my stack project into a binary so I can copy it onto a server.
Thanks Ben