diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79d4a7c0b..db55232eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,17 +13,23 @@ on: merge_group: env: - DEFAULT_AGDA_VERSION: "2.6.3" - DEFAULT_AGDA_STDLIB_VERSION: "1.7.2" + DEFAULT_AGDA_VERSION: "2.7.0" + DEFAULT_AGDA_STDLIB_VERSION: "2.1" DEFAULT_GHC_VERSION: "9.4.8" DEFAULT_CABAL_VERSION: "3.10.1.0" DEFAULT_EPUBCHECK_VERSION: "4.2.6" NOKOGIRI_USE_SYSTEM_LIBRARIES: true +# Use PowerShell by default defaults: run: shell: pwsh +# Limit concurrent runs to one per branch +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: build: strategy: @@ -38,25 +44,35 @@ jobs: os: windows-latest # Older versions of Agda - - name: "Build with older Agda 2.6.2.2" - agda-version: "2.6.2.2" - agda-stdlib-version: "1.7.1" - - name: "Build with older Agda 2.6.2.1" - agda-version: "2.6.2.1" - agda-stdlib-version: "1.7.1" - - name: "Build with older Agda 2.6.2" - agda-version: "2.6.2" - agda-stdlib-version: "1.7.1" - - name: "Build with older Agda 2.6.1.3" - agda-version: "2.6.1.3" - agda-stdlib-version: "1.6" + - name: "Build with older Agda 2.6.4.3" + agda-version: "2.6.4.3" + agda-stdlib-version: "2.0" + + # 2024-09-05: + # Version 2.0 of the standard library breaks backwards compatibility. + # Therefore, versions of Agda before 2.6.4.3 are no longer supported. + # + # - name: "Build with older Agda 2.6.4.3" + # agda-version: "2.6.4.3" + # agda-stdlib-version: "1.7.2" + # - name: "Build with older Agda 2.6.2.2" + # agda-version: "2.6.2.2" + # agda-stdlib-version: "1.7.1" + # - name: "Build with older Agda 2.6.2.1" + # agda-version: "2.6.2.1" + # agda-stdlib-version: "1.7.1" + # - name: "Build with older Agda 2.6.2" + # agda-version: "2.6.2" + # agda-stdlib-version: "1.7.1" + # - name: "Build with older Agda 2.6.1.3" + # agda-version: "2.6.1.3" + # agda-stdlib-version: "1.6" # Newer versions of GHC - # - name: "Build with newer GHC 9.8.1" - # ghc-version: "9.8.1" - # experimental: true - - name: "Build with newer GHC 9.6.3" - ghc-version: "9.6.3" + - name: "Build with newer GHC 9.8.2" + ghc-version: "9.8.2" + - name: "Build with newer GHC 9.6.6" + ghc-version: "9.6.6" # Older versions of GHC - name: "Build with older GHC 9.2.8" @@ -82,7 +98,7 @@ jobs: cabal-version: "${{ env.DEFAULT_CABAL_VERSION }}" - name: "Setup Agda" - uses: wenkokke/setup-agda@latest + uses: wenkokke/setup-agda@v2 with: agda-version: "${{ matrix.agda-version || env.DEFAULT_AGDA_VERSION }}" force-no-build: "true" diff --git a/README.md b/README.md index cede469b5..de9e45238 100644 --- a/README.md +++ b/README.md @@ -59,11 +59,11 @@ or using `ghcup tui` and choosing to `set` the appropriate tools. ### Install Agda -The easiest way to install Agda is using Cabal. PLFA uses Agda version 2.6.3. Run the following command: +The easiest way to install Agda is using Cabal. PLFA uses Agda version 2.7.0. Run the following command: ```bash cabal update -cabal install Agda-2.6.3 +cabal install Agda-2.7.0 ``` This step will take a long time and a lot of memory to complete. @@ -264,22 +264,22 @@ If you plan to build PLFA locally, please refer to [Contributing][plfa-contribut [pre-commit-status-url]: https://results.pre-commit.ci/latest/github/plfa/plfa.github.io/dev [plfa-badge-version-svg]: https://img.shields.io/github/v/tag/plfa/plfa.github.io?label=release [plfa-badge-version-url]: https://github.com/plfa/plfa.github.io/releases/latest -[agda-badge-version-svg]: https://img.shields.io/badge/agda-v2.6.3-blue.svg -[agda-badge-version-url]: https://github.com/agda/agda/releases/tag/v2.6.3. -[agda-stdlib-version-svg]: https://img.shields.io/badge/agda--stdlib-v1.7.2-blue.svg -[agda-stdlib-version-url]: https://github.com/agda/agda-stdlib/releases/tag/v1.7.2 +[agda-badge-version-svg]: https://img.shields.io/badge/agda-v2.7.0-blue.svg +[agda-badge-version-url]: https://github.com/agda/agda/releases/tag/v2.7.0. +[agda-stdlib-version-svg]: https://img.shields.io/badge/agda--stdlib-v2.1-blue.svg +[agda-stdlib-version-url]: https://github.com/agda/agda-stdlib/releases/tag/v2.1 [plfa]: https://plfa.inf.ed.ac.uk [plfa-epub]: https://plfa.github.io/plfa.epub [plfa-contributing]: https://plfa.github.io/Contributing/ [ghcup]: https://www.haskell.org/ghcup/ [git]: https://git-scm.com/downloads [xcode]: https://developer.apple.com/xcode/ -[agda-readthedocs-installation]: https://agda.readthedocs.io/en/v2.6.3/getting-started/installation.html -[agda-readthedocs-hello-world]: https://agda.readthedocs.io/en/v2.6.3/getting-started/hello-world.html -[agda-readthedocs-holes]: https://agda.readthedocs.io/en/v2.6.3/getting-started/a-taste-of-agda.html#preliminaries -[agda-readthedocs-emacs-mode]: https://agda.readthedocs.io/en/v2.6.3/tools/emacs-mode.html -[agda-readthedocs-emacs-notation]: https://agda.readthedocs.io/en/v2.6.3/tools/emacs-mode.html#notation-for-key-combinations -[agda-readthedocs-package-system]: https://agda.readthedocs.io/en/v2.6.3/tools/package-system.html#example-using-the-standard-library +[agda-readthedocs-installation]: https://agda.readthedocs.io/en/v2.7.0/getting-started/installation.html +[agda-readthedocs-hello-world]: https://agda.readthedocs.io/en/v2.7.0/getting-started/hello-world.html +[agda-readthedocs-holes]: https://agda.readthedocs.io/en/v2.7.0/getting-started/a-taste-of-agda.html#preliminaries +[agda-readthedocs-emacs-mode]: https://agda.readthedocs.io/en/v2.7.0/tools/emacs-mode.html +[agda-readthedocs-emacs-notation]: https://agda.readthedocs.io/en/v2.7.0/tools/emacs-mode.html#notation-for-key-combinations +[agda-readthedocs-package-system]: https://agda.readthedocs.io/en/v2.7.0/tools/package-system.html#example-using-the-standard-library [emacs]: https://www.gnu.org/software/emacs/download.html [emacs-tour]: https://www.gnu.org/software/emacs/tour/ [emacs-home]: https://www.gnu.org/software/emacs/manual/html_node/efaq-w32/Location-of-init-file.html diff --git a/courses/TSPL/2019/Assignment2.lagda.md b/courses/TSPL/2019/Assignment2.lagda.md index c6fdd653f..1c6748c7a 100644 --- a/courses/TSPL/2019/Assignment2.lagda.md +++ b/courses/TSPL/2019/Assignment2.lagda.md @@ -53,12 +53,7 @@ open import Data.Unit using (⊤; tt) open import Data.Sum using (_⊎_; inj₁; inj₂) renaming ([_,_] to case-⊎) open import Data.Empty using (⊥; ⊥-elim) open import Data.Bool.Base using (Bool; true; false; T; _∧_; _∨_; not) -open import Relation.Nullary using (¬_; Dec; yes; no) -open import Relation.Nullary.Decidable using (⌊_⌋; toWitness; fromWitness) -open import Relation.Nullary.Negation using (¬?) -open import Relation.Nullary.Product using (_×-dec_) -open import Relation.Nullary.Sum using (_⊎-dec_) -open import Relation.Nullary.Negation using (contraposition) +open import Relation.Nullary using (¬_; Dec; yes; no; ⌊_⌋; toWitness; fromWitness; ¬?; _×-dec_; _⊎-dec_; contraposition) open import Data.Product using (Σ; _,_; ∃; Σ-syntax; ∃-syntax) open import plfa.part1.Relations using (_<_; z