File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,7 @@ Set Strict Implicit.
1111Section functors.
1212 Variable A : Type.
1313
14- Instance FunFunctor A : Functor (Fun A) :=
15- { fmap _A _B g f x := g (f x)
16- }.
17-
18- Local Instance Functor_Fun : Functor (Fun A) :=
14+ Global Instance Functor_Fun : Functor (Fun A) :=
1915 { fmap _A _B g f x := g (f x) }.
2016
2117 Local Instance CoFunctor_Fun T : CoFunctor (fun x => x -> T) :=
@@ -33,7 +29,7 @@ Section functors.
3329 Local Instance CoFunctor_cofunctor F G (fF : CoFunctor F) (fG : CoFunctor G) : Functor (fun x => F (G x)) :=
3430 {| fmap := fun _ _ g => @cofmap F _ _ _ (@cofmap G _ _ _ g) |}.
3531
36- Local Instance Applicative_Fun : Applicative (Fun A) :=
32+ Global Instance Applicative_Fun : Applicative (Fun A) :=
3733 { pure := fun _ x _ => x
3834 ; ap := fun _ _ f x y => (f y) (x y)
3935 }.
You can’t perform that action at this time.
0 commit comments