Skip to content

Commit a04eeab

Browse files
committed
Merge branch 'release-v0.7.6'
* release-v0.7.6: Bump version and update changelog Update from macos-12 to macos-13 and macos-latest runners Enable DeriveDataTypeable to work around a minor bug in BNFC 2.9.6 (fix #200) fix typo Fix tuple pattern syntax Fix tuple patterns in parameter declarations
2 parents 51fb959 + c138828 commit a04eeab

File tree

19 files changed

+86
-102
lines changed

19 files changed

+86
-102
lines changed

.github/workflows/ghc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ${{ matrix.os }}
3737
strategy:
3838
matrix:
39-
os: [ubuntu-latest, windows-latest, macos-12]
39+
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
4040

4141
steps:
4242
- name: 📥 Checkout repository

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ${{ matrix.os }}
3434
strategy:
3535
matrix:
36-
os: [ubuntu-latest, windows-latest, macos-latest]
36+
os: [ubuntu-latest, windows-latest, macos-13, macos-latest]
3737

3838
steps:
3939
- name: 📥 Checkout repository

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ An experimental proof assistant for synthetic ∞-categories.
2020

2121
## About this project
2222

23-
This project has started with the idea of bringing Riehl and Shulman's 2017 paper [1] to "life" by implementing a proof assistant based on their type theory with shapes. Currently an early prototype with an [online playground](https://rzk-lang.github.io/rzk/develop/playground/) is available. The current implementation is capable of checking various formalisations. Perhaps, the largest formalisations are available in two related projects: <https://rzk-lang.github.com/sHoTT> and <https://github.com/emilyriehl/yoneda>. `sHoTT` project (originally a fork of the yoneda project) aims to cover more formalisations in simplicial HoTT and ∞-categories, while `yoneda` project aims to compare different formalisations of the Yoneda lemma.
23+
This project has started with the idea of bringing Riehl and Shulman's 2017 paper [1] to "life" by implementing a proof assistant based on their type theory with shapes. Currently an early prototype with an [online playground](https://rzk-lang.github.io/rzk/develop/playground/) is available. The current implementation is capable of checking various formalisations. Perhaps, the largest formalisations are available in two related projects: <https://rzk-lang.github.io/sHoTT> and <https://github.com/emilyriehl/yoneda>. `sHoTT` project (originally a fork of the yoneda project) aims to cover more formalisations in simplicial HoTT and ∞-categories, while `yoneda` project aims to compare different formalisations of the Yoneda lemma.
2424

2525
Internally, `rzk` uses a version of second-order abstract syntax allowing relatively straightforward handling of binders (such as lambda abstraction). In the future, `rzk` aims to support dependent type inference relying on E-unification for second-order abstract syntax [2].
2626
Using such representation is motivated by automatic handling of binders and easily automated boilerplate code. The idea is that this should keep the implementation of `rzk` relatively small and less error-prone than some of the existing approaches to implementation of dependent type checkers.

rzk/ChangeLog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to the
77
[Haskell Package Versioning Policy](https://pvp.haskell.org/).
88

9+
## v0.7.6 — 2025-08-14
10+
11+
Minor fixes:
12+
13+
- Support BNFC 2.9.6 (see [#201](https://github.com/rzk-lang/rzk/pull/201))
14+
- Fix typo in the sHoTT link (see [#194](https://github.com/rzk-lang/rzk/pull/194))
15+
- Fix tuple pattern syntax (see [#193](https://github.com/rzk-lang/rzk/pull/193) and [#191](https://github.com/rzk-lang/rzk/pull/191))
16+
917
## v0.7.5 — 2024-08-18
1018

1119
Minor changes:

rzk/grammar/Syntax.cf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@ SomeSectionName. SectionName ::= VarIdent ;
6060
PatternUnit. Pattern ::= "unit" ;
6161
PatternVar. Pattern ::= VarIdent ;
6262
PatternPair. Pattern ::= "(" Pattern "," Pattern ")" ;
63-
PatternTuple. Pattern ::= "(" Pattern "," Pattern "," [Pattern] ")" ;
63+
PatternTuple. Pattern ::= "(" Pattern "," Pattern "," [Pattern1] ")" ;
6464
separator nonempty Pattern "" ;
65+
_. Pattern1 ::= Pattern ;
66+
separator nonempty Pattern1 "," ;
6567

6668
-- Parameter introduction (for lambda abstractions)
6769
ParamPattern. Param ::= Pattern ;

rzk/package.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: rzk
2-
version: 0.7.5
2+
version: 0.7.6
33
github: "rzk-lang/rzk"
44
license: BSD3
55
author: "Nikolai Kudasov"
@@ -64,6 +64,7 @@ ghc-options:
6464
- -Wpartial-fields
6565
- -Wredundant-constraints
6666
- -optP-Wno-nonportable-include-path
67+
- -XDeriveDataTypeable
6768

6869
library:
6970
source-dirs: src

rzk/rzk.cabal

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
cabal-version: 1.24
22

3-
-- This file has been generated from package.yaml by hpack version 0.36.0.
3+
-- This file has been generated from package.yaml by hpack version 0.37.0.
44
--
55
-- see: https://github.com/sol/hpack
66

77
name: rzk
8-
version: 0.7.5
8+
version: 0.7.6
99
synopsis: An experimental proof assistant for synthetic ∞-categories
1010
description: Please see the README on GitHub at <https://github.com/rzk-lang/rzk#readme>
1111
category: Dependent Types
@@ -57,7 +57,7 @@ library
5757
Paths_rzk
5858
hs-source-dirs:
5959
src
60-
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -optP-Wno-nonportable-include-path
60+
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -optP-Wno-nonportable-include-path -XDeriveDataTypeable
6161
build-tools:
6262
alex >=3.2.4
6363
, happy >=1.19.9
@@ -101,7 +101,7 @@ executable rzk
101101
Paths_rzk
102102
hs-source-dirs:
103103
app
104-
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -optP-Wno-nonportable-include-path -threaded -rtsopts -with-rtsopts=-N
104+
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -optP-Wno-nonportable-include-path -XDeriveDataTypeable -threaded -rtsopts -with-rtsopts=-N
105105
build-tools:
106106
alex >=3.2.4
107107
, happy >=1.19.9
@@ -132,7 +132,7 @@ test-suite doctests
132132
main-is: doctests.hs
133133
hs-source-dirs:
134134
test
135-
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -optP-Wno-nonportable-include-path
135+
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -optP-Wno-nonportable-include-path -XDeriveDataTypeable
136136
build-tools:
137137
alex >=3.2.4
138138
, happy >=1.19.9
@@ -163,7 +163,7 @@ test-suite rzk-test
163163
Paths_rzk
164164
hs-source-dirs:
165165
test
166-
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -optP-Wno-nonportable-include-path -threaded -rtsopts -with-rtsopts=-N
166+
ghc-options: -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wpartial-fields -Wredundant-constraints -optP-Wno-nonportable-include-path -XDeriveDataTypeable -threaded -rtsopts -with-rtsopts=-N
167167
build-tools:
168168
alex >=3.2.4
169169
, happy >=1.19.9

rzk/src/Language/Rzk/Free/Syntax.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ unsafeTermToPattern = ttp
341341
Rzk.Unit loc -> Rzk.PatternUnit loc
342342
Rzk.Var loc x -> Rzk.PatternVar loc x
343343
Rzk.Pair loc l r -> Rzk.PatternPair loc (ttp l) (ttp r)
344+
Rzk.Tuple loc t1 t2 ts -> Rzk.PatternTuple loc (ttp t1) (ttp t2) (map ttp ts)
344345
term -> error ("ERROR: expected a pattern but got\n " ++ Rzk.printTree term)
345346

346347
fromTerm' :: Term' -> Rzk.Term

rzk/src/Language/Rzk/Syntax/Abs.hs

Lines changed: 18 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rzk/src/Language/Rzk/Syntax/Doc.txt

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)