fizruk / fizruk/haskell-codeworld-template

Can't build with stack on Windows

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Cloning repo and trying to build it throws following error:

```
➜ stack build
WARNING: Ignoring regex-posix's bounds on base (<0 && >=4.3 && <4.15); using base-4.13.0.0.
Reason: trusting snapshot over cabal file dependency information.
ghc.exe: panic! (the 'impossible' happened)
(GHC version 8.8.4 for x86_64-unknown-mingw32):
Prelude.chr: bad argument: 1577058307

Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug

-- While building simple Setup.hs (scroll up to its section to see the error) using:
C:\Users\User\AppData\Local\Programs\stack\x86_64-windows\ghc-8.8.4\bin\ghc-8.8.4.exe -rtsopts -threaded -clear-package-db -global-package-db -hide-all-packages -package base -main-is StackSetupShim.mainOverride -package Cabal-3.0.1.0 C:\sr\setup-exe-src\setup-Z6RU0evB.hs C:\sr\setup-exe-src\setup-shim-Z6RU0evB.hs -o C:\sr\setup-exe-cache\x86_64-windows\tmp-Cabal-simple_Z6RU0evB_3.0.1.0_ghc-8.8.4.exe
Process exited with code: ExitFailure 1
```

However, I figured out following workaround:

Change `stack.yaml` to:
```
resolver: lts-18.28

allow-newer: true

packages:
- .

extra-deps:
- codeworld-api-0.7.0@sha256:d19fcbdb4d4951570e533b2874779bd9dfe88e31688abcdea6bcb9bf64130a1b,6395
- blank-canvas-0.7.3@sha256:b24a082cd7b37f6835ab87d4d99562ed1785e295e42472337aa92037c4014653,5103
- reflex-0.8.2.0@sha256:2ea3db2ed15b83eed6b15f7c1aaceeda9e783b611ac530032f6aeaf0d33b8ef0,11974
- kansas-comet-0.4.1@sha256:5744f0dc96864c92f57e025c1546d9cac9ebe06a2b8deb7f05c87452161caf8a,2306
- monoidal-containers-0.6.2.0@sha256:124941d70df5e2928b4c6db605a1d0464e68c2c6b02e426db24a40194d43821d,2219
- patch-0.0.5.2@sha256:0840a9f4f2ef620869975574834d9661157df59927bb3f2b0644c21210c75f47,2905
```

I used:
`stack 2.7.5`
`cabal 3.6.2.0`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.