Skip to content

Commit

Permalink
Merge pull request #11 from jkopanski/fix-whitespace
Browse files Browse the repository at this point in the history
Fix whitespace
  • Loading branch information
conal authored Feb 7, 2024
2 parents b24b302 + cf526fc commit b3208da
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 7 deletions.
13 changes: 13 additions & 0 deletions fix-whitespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
included-dirs:
- src

included-files:
- "*.agda"
- "*.md"
- "*.org"
- "*.nix"

excluded-dirs:
- .git
- .direnv
- result
14 changes: 13 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,22 @@
agdaWithStandardLibrary = pkgs.agda.withPackages (_: [ standard-library ]);

in {
devShell = pkgs.mkShell {
checks.whitespace = pkgs.stdenvNoCC.mkDerivation {
name = "check-whitespace";
dontBuild = true;
src = ./.;
doCheck = true;
checkPhase = ''
${pkgs.haskellPackages.fix-whitespace}/bin/fix-whitespace --check
'';
installPhase = ''mkdir "$out"'';
};

devShells.default = pkgs.mkShell {
buildInputs = [
agdaWithStandardLibrary
pkgs.graphviz
pkgs.haskellPackages.fix-whitespace
];
};

Expand Down
2 changes: 1 addition & 1 deletion src/Felix/Construct/Comma.agda
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ open import Felix.Homomorphism

module Felix.Construct.Comma
{o₀}{obj₀ : Set o₀} {ℓ₀} (_⇨₀_ : obj₀ obj₀ Set ℓ₀) ⦃ _ : Category _⇨₀_ ⦄
{o₁}{obj₁ : Set o₁} {ℓ₁} (_⇨₁_ : obj₁ obj₁ Set ℓ₁) ⦃ _ : Category _⇨₁_ ⦄
{o₁}{obj₁ : Set o₁} {ℓ₁} (_⇨₁_ : obj₁ obj₁ Set ℓ₁) ⦃ _ : Category _⇨₁_ ⦄
{o₂}{obj₂ : Set o₂} {ℓ₂} (_⇨₂_ : obj₂ obj₂ Set ℓ₂) ⦃ _ : Category _⇨₂_ ⦄
{q₀} ⦃ _ : Equivalent q₀ _⇨₀_ ⦄ ⦃ _ : L.Category _⇨₀_ ⦄
{q₁} ⦃ _ : Equivalent q₁ _⇨₁_ ⦄ -- ⦃ _ : L.Category _⇨₁_ ⦄
Expand Down
2 changes: 1 addition & 1 deletion src/Felix/Construct/Product.agda
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ module product-homomorphisms where instance
-- → BooleanH Obj _⇨₂_
-- booleanH₂ = record { β = id ; β⁻¹ = id }

-- strongBooleanH₁ :
-- strongBooleanH₁ :
-- ∀ {q₁} ⦃ _ : Equivalent q₁ _⇨₁_ ⦄ ⦃ _ : Boolean obj₁ ⦄ ⦃ _ : Boolean obj₂ ⦄
-- ⦃ _ : L.Category _⇨₁_ ⦄
-- → StrongBooleanH Obj _⇨₁_
Expand Down
2 changes: 1 addition & 1 deletion src/Felix/Instances/CAT.agda
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ toH (mk⤇ Fₒ Fₘ) = record { Fₘ = Fₘ }
it-⤇ :
{obj₁ : Set o} {_⇨₁_ : obj₁ obj₁ Set ℓ}
{obj₂ : Set o} {_⇨₂_ : obj₂ obj₂ Set ℓ}
⦃ Hₒ : Homomorphismₒ obj₁ obj₂ ⦄ ⦃ H : Homomorphism _⇨₁_ _⇨₂_ ⦄
⦃ Hₒ : Homomorphismₒ obj₁ obj₂ ⦄ ⦃ H : Homomorphism _⇨₁_ _⇨₂_ ⦄
cat _⇨₁_ ⤇ cat _⇨₂_
it-⤇ ⦃ Hₒ = Hₒ ⦄ ⦃ H = H ⦄ = mk⤇ (Homomorphismₒ.Fₒ Hₒ) (Homomorphism.Fₘ H)

Expand Down
2 changes: 1 addition & 1 deletion src/Felix/Instances/Function/Lift.agda
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@ module function-lift-instances where instance
cartH : CartesianH (_⇾_ {a}) (_⇾_ {a ⊔ b})
cartH = record
{ F-! = λ _ refl
; F-▵ = λ _ refl
; F-▵ = λ _ refl
; F-exl = λ _ refl
; F-exr = λ _ refl }
2 changes: 1 addition & 1 deletion src/Felix/Instances/Pred.agda
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module PRED-functor where instance

H : Homomorphism _⇒_ _⇾_
H = record { Fₘ = _⇒_.f }

catH : CategoryH _⇒_ _⇾_
catH = record { F-id = refl ; F-∘ = refl }

Expand Down
2 changes: 1 addition & 1 deletion src/Felix/Raw.agda
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ record CartesianClosed {obj : Set o}
: Set (o ⊔ ℓ) where
private infix 0 _⇨_; _⇨_ = _⇨′_
field

curry : (a × b ⇨ c) (a ⇨ (b ⇛ c))
apply : (a ⇛ b) × a ⇨ b

Expand Down

0 comments on commit b3208da

Please sign in to comment.