File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
src/Data/List/Relation/Unary/All Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ Highlights
9
9
Bug-fixes
10
10
---------
11
11
12
+ * Fixed List.Relation.Unary.All.Properties.map-id, which was abstracted over
13
+ unused module parameters.
14
+
12
15
Non-backwards compatible changes
13
16
--------------------------------
14
17
Original file line number Diff line number Diff line change @@ -173,17 +173,19 @@ module _ {P : A → Set p} where
173
173
------------------------------------------------------------------------
174
174
-- map
175
175
176
+ module _ {P : Pred A p} where
177
+
178
+ map-id : ∀ {xs} (pxs : All P xs) → All.map id pxs ≡ pxs
179
+ map-id [] = refl
180
+ map-id (px ∷ pxs) = cong (px ∷_) (map-id pxs)
181
+
176
182
module _ {P : Pred A p} {Q : Pred A q} {f : P ⋐ Q} where
177
183
178
184
map-cong : ∀ {xs} {g : P ⋐ Q} (pxs : All P xs) →
179
185
(∀ {x} → f {x} ≗ g) → All.map f pxs ≡ All.map g pxs
180
186
map-cong [] _ = refl
181
187
map-cong (px ∷ pxs) feq = cong₂ _∷_ (feq px) (map-cong pxs feq)
182
188
183
- map-id : ∀ {xs} (pxs : All P xs) → All.map id pxs ≡ pxs
184
- map-id [] = refl
185
- map-id (px ∷ pxs) = cong (px ∷_) (map-id pxs)
186
-
187
189
map-compose : ∀ {r} {R : Pred A r} {xs} {g : Q ⋐ R} (pxs : All P xs) →
188
190
All.map g (All.map f pxs) ≡ All.map (g ∘ f) pxs
189
191
map-compose [] = refl
You can’t perform that action at this time.
0 commit comments