aboutsummaryrefslogtreecommitdiff
path: root/Functor/Instance/Endo
diff options
context:
space:
mode:
authorJacques Comeaux <jacquesrcomeaux@protonmail.com>2025-10-29 19:45:10 -0500
committerJacques Comeaux <jacquesrcomeaux@protonmail.com>2025-10-29 19:45:10 -0500
commite6473296bed95272061bb0903bdf4dd38011bed4 (patch)
treebc9c8e002b9e13efdf8fa5a69aa28e7a0140cc87 /Functor/Instance/Endo
parent0d876849094f2851247c5d2dce994b6387208712 (diff)
Add List functor
Diffstat (limited to 'Functor/Instance/Endo')
-rw-r--r--Functor/Instance/Endo/List.agda15
1 files changed, 15 insertions, 0 deletions
diff --git a/Functor/Instance/Endo/List.agda b/Functor/Instance/Endo/List.agda
new file mode 100644
index 0000000..67e3d0b
--- /dev/null
+++ b/Functor/Instance/Endo/List.agda
@@ -0,0 +1,15 @@
+{-# OPTIONS --without-K --safe #-}
+
+open import Level using (Level)
+
+module Functor.Instance.Endo.List {ℓ : Level} where
+
+import Functor.Instance.List {ℓ} {ℓ} as List
+
+open import Categories.Category.Instance.Setoids using (Setoids)
+open import Categories.Functor using (Endofunctor)
+
+-- List is only an endofunctor when the carrier sets and 
+-- equivalence relations live at the same level
+List : Endofunctor (Setoids ℓ ℓ)
+List = List.List