Skip to content

Commit f8f530a

Browse files
authored
Fun functors visibility (#90)
Close #88
1 parent 973e4bb commit f8f530a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

theories/Data/Fun.v

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ Set Strict Implicit.
1111
Section 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
}.

0 commit comments

Comments
 (0)