Skip to content

shlevy/parametric-functor

Repository files navigation

parametric-functor

As Oleg Grenrus argued in 2019, Functors should be parametric, and in particular should:

  • Satisfy fmap coerce = coerce
  • Have a ∀ a b. Coercible a b ⇒ Coercible (f a) (f b) super-constraint

Until this change gets adopted in @base@, this package can be used for a variant of Functor which satisfies these requirements.

About

A known-parametric Functor typeclass

Resources

License

Stars

Watchers

Forks

Packages

No packages published