parametric-functor
Version 0.1.1.0 revision 0 uploaded by shlevy.
Package meta
- Synopsis
- A known-parametric Functor typeclass
- Description
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.- Author
- Shea Levy
- Bug reports
- https://github.com/shlevy/parametric-functor/issues
- Category
- Data
- Copyright
- Copyright 2024 Shea Levy Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
- Homepage
- https://github.com/shlevy/parametric-functor
- Maintainer
- shea@shealevy.com
- Package URL
- n/a
- Stability
- n/a