Skip to content
Draft
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
4 changes: 2 additions & 2 deletions Class/Convertible/Core.agda
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ Convertible₁ T U = ∀ {A B} → ⦃ Convertible A B ⦄ → Convertible (T A)
Convertible₂ : (Set → Set → Set) → (Set → Set → Set) → Set₁
Convertible₂ T U = ∀ {A B} → ⦃ Convertible A B ⦄ → Convertible₁ (T A) (U B)

Functor⇒Convertible : ∀ {F : Type↑} → ⦃ Functor F ⦄ → Convertible₁ F F
Functor⇒Convertible : ∀ {F : Type↑ id} → ⦃ Functor F ⦄ → Convertible₁ F F
Functor⇒Convertible = λ where
.to → fmap to
.from → fmap from

Bifunctor⇒Convertible : ∀ {F} → ⦃ Bifunctor F ⦄ → Convertible₂ F F
Bifunctor⇒Convertible : ∀ {F : Type↑² (_⊔ˡ_)} → ⦃ Bifunctor F ⦄ → Convertible₂ F F
Bifunctor⇒Convertible = λ where
.to → bimap to to
.from → bimap from from
Expand Down
2 changes: 1 addition & 1 deletion Tactic/Derive/Convertible.agda
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ open import Class.HasHsType
open import Tactic.Derive.HsType

private
instance _ = Functor-M {TC}
instance _ = Functor-M {_} {TC}

open MonadReader ⦃...⦄

Expand Down