Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-format all files #142

Merged
merged 3 commits into from
Dec 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,10 @@ jobs:
with:
dry: true
prettier_options: --check **/*.{md,json,yaml,yml}

- name: Rzk formatter
uses: rzk-lang/[email protected]
with:
rzk-version: v0.7.2
typecheck: false
check-formatting: true
5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"editor.inlineSuggest.enabled": true,
"editor.acceptSuggestionOnEnter": "off",
"editor.snippetSuggestions": "top",
"editor.wordBasedSuggestions": false,
"editor.wordBasedSuggestions": "off",
"javascript.suggest.names": false,

// Autoformatting and file type specific settings
Expand Down Expand Up @@ -61,5 +61,6 @@
"editor.autoClosingBrackets": "never",
"editor.detectIndentation": false,
"editor.insertSpaces": true
}
},
"rzk.format.enable": true
}
8 changes: 4 additions & 4 deletions src/hott/00-common.rzk.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,20 @@ The following demonstrates the syntax for constructing terms in Sigma types:
```rzk
#def Map
: U
:= Σ ((A',A) : product U U) , (A' → A)
:= Σ ((A' , A) : product U U) , (A' → A)

#def the-map-Map
( ((A',A),α) : Map)
( ( ( A' , A) , α) : Map)
: A' → A
:= α

#def the-domain-Map
( ((A',_),_) : Map)
( ( ( A' , _) , _) : Map)
: U
:= A'

#def the-codomain-Map
( ((_,A),_) : Map)
( ( ( _ , A) , _) : Map)
: U
:= A
```
Loading