Skip to content

Support GHC 9.2.1 - #5648

Closed
andreasabel wants to merge 10 commits into
masterfrom
ghc-9.2
Closed

andreasabel wants to merge 10 commits into
masterfrom
ghc-9.2

Conversation

@andreasabel

Copy link
Copy Markdown
Member

Move to GHC 9.2.1:

  • bump base
  • bump Cabal
  • update CI

@andreasabel
andreasabel requested review from L-TChen and asr November 13, 2021 14:31
@andreasabel andreasabel linked an issue Nov 13, 2021 that may be closed by this pull request
12 tasks done
@andreasabel

andreasabel commented Nov 13, 2021 •

Copy link
Copy Markdown
Member Author

Upgrading test.yml to GHC 9.2 give me the following problem:

======================================================================
================== Testing the size-solver program ===================
======================================================================
make[1]: Entering directory '/home/runner/work/agda/agda/src/size-solver'
stack install shelltestrunner
Stack has not been tested with GHC versions above 9.0, and using 9.2.1, this may fail
Stack has not been tested with Cabal versions above 3.4, but version 3.6.0.0 was found, this may fail

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for regex-posix-0.96.0.0:
    base-4.16.0.0 from stack configuration does not match >=4.3 && <4.16  (latest matching version
                  is 4.15.0.0)
needed due to shelltestrunner-1.9 -> regex-posix-0.96.0.0

Some different approaches to resolving this:

  * Set 'allow-newer: true'
    in /home/runner/.stack/config.yaml to ignore all version constraints and build anyway.

  * Build requires unattainable version of base. Since base is a part of GHC, you most likely need
    to use a different GHC version with the matching base.

Plan construction failed.

So maybe stick to GHC 9.0 there for the moment.

@andreasabel andreasabel added ghc-9.2.1 infra: github workflows Issues related to GitHub workflows and actions (not in changelog) labels Nov 13, 2021
9.2.1 gave problems with `stack install shelltestrunner` needed for
testing the size-solver.
@andreasabel

Copy link
Copy Markdown
Member Author

Stack on Windows gives me weird errors:
E.g. https://github.com/agda/agda/runs/4200846098?check_suite_focus=true#step:13:42

  > src\full\Agda\Compiler\Common.hs:1:7: error:
Agda       >     lexical error in pragma at character '1'
Agda       >   |
Agda       > 1 | {-# LANGUAGE CPP #-}

Agda       >   |       ^

This might be too early to try stack with latest GHC + Cabal on Windows.
I am giving up on CI for 9.2 on Windows for now.

@andreasabel

andreasabel commented Nov 14, 2021 •

Copy link
Copy Markdown
Member Author

This might be the source of a failure:

$ stack build --stack-yaml=stack-9.0.1.yaml --test
WARNING: Ignoring mintty's bounds on Win32 (>=2.13.1); using Win32-2.10.0.0.

andreasabel added a commit that referenced this pull request Nov 14, 2021
Commits squashed into this one:

- Fix stack-CI for 9.0 (happy-1.20) and 9.2 Win (time-1.9.3)
- test.yml: stick with GHC 9.0.1 for the time being
  9.2.1 gave problems with `stack install shelltestrunner` needed for testing the size-solver.
- Workflow stack.yml: keep Windows to GHC 9.0 until unix-compat is fixed
- Workflow stack.yml: Windows: try GHC 9.2 as unix-compat is fixed
- stack-9.2.1.yaml: for Windows: add time-1.9.3
- stack-9.2.1.yaml: downgrade Win32 to 2.9 for unix-compat /\ haskeline
- Stack workflow: give up on GHC 9.2 for Windows for now
  The ecosystem is not ready...
- Re #5648: stack workflow on windows: fix 9.0.1, try 9.2.1
@andreasabel

Copy link
Copy Markdown
Member Author

Merged manually as:

  • abef20b base-4.16 compatibility: add to List1.{pre/ap}pend suffix List
  • f8809e6 Support GHC 9.2: bump base, Cabal; update CI

@andreasabel andreasabel self-assigned this Nov 14, 2021
@andreasabel andreasabel mentioned this pull request Nov 14, 2021
3 tasks done
@andreasabel andreasabel mentioned this pull request Nov 14, 2021
12 tasks done
andreasabel added a commit that referenced this pull request Nov 17, 2021
Commits squashed into this one:

- Fix stack-CI for 9.0 (happy-1.20) and 9.2 Win (time-1.9.3)
- test.yml: stick with GHC 9.0.1 for the time being
  9.2.1 gave problems with `stack install shelltestrunner` needed for testing the size-solver.
- Workflow stack.yml: keep Windows to GHC 9.0 until unix-compat is fixed
- Workflow stack.yml: Windows: try GHC 9.2 as unix-compat is fixed
- stack-9.2.1.yaml: for Windows: add time-1.9.3
- stack-9.2.1.yaml: downgrade Win32 to 2.9 for unix-compat /\ haskeline
- Stack workflow: give up on GHC 9.2 for Windows for now
  The ecosystem is not ready...
- Re #5648: stack workflow on windows: fix 9.0.1, try 9.2.1
@andreasabel
andreasabel deleted the ghc-9.2 branch March 7, 2022 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ghc-9.2.1 infra: github workflows Issues related to GitHub workflows and actions (not in changelog)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support GHC 9.2

1 participant