Skip to content

Commit

Permalink
Merge pull request #142 from rzk-lang/formatting
Browse files Browse the repository at this point in the history
Auto-format all files
  • Loading branch information
aabounegm authored Dec 12, 2023
2 parents 7243b19 + 25abd62 commit 296a11b
Show file tree
Hide file tree
Showing 26 changed files with 3,540 additions and 3,481 deletions.
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

0 comments on commit 296a11b

Please sign in to comment.