refactor(library/init/functor): better signature
This commit is contained in:
parent
2bcd5c8379
commit
39b93f3776
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ prelude
|
|||
structure functor [class] (f : Type → Type) : Type :=
|
||||
(map : Π {a b: Type}, (a → b) → f a → f b)
|
||||
|
||||
inline definition fmap {A B : Type} {F : Type → Type} [functor F] (f : A → B) (a : F A) : F B :=
|
||||
inline definition fmap {F : Type → Type} [functor F] {A B : Type} (f : A → B) (a : F A) : F B :=
|
||||
functor.map f a
|
||||
|
||||
infixr ` <$> `:100 := fmap
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue