We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
maybe
1 parent 606bea8 commit 7a8c015Copy full SHA for 7a8c015
src/Data/Maybe/Properties.agda
@@ -97,6 +97,10 @@ maybe′-map : ∀ j (n : C) (f : A → B) ma →
97
maybe′ j n (map f ma) ≡ maybe′ (j ∘′ f) n ma
98
maybe′-map = maybe-map
99
100
+maybe-∘ : ∀ {c x} (f : B → C) (g : A → B) → f (maybe g c x) ≡ maybe (f ∘ g) (f c) x
101
+maybe-∘ {x = just _} _ _ = refl
102
+maybe-∘ {x = nothing} _ _ = refl
103
+
104
------------------------------------------------------------------------
105
-- _<∣>_
106
0 commit comments