generalised-functor: Generalisng Functors

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]


This package Generalises Functors so "functor like" types that are not exactly Functors can be used as Functor. It also includes Contravariant Functors.

Examples of functors definable here:

fmap :: (a -> b) -> (a, a, ... , a) -> (b, b, ... , b) fmap f (x1, x2, ... , xn) = (f x1, f x2, ... , f xn)

contramap :: (a -> b) -> (b -> r) -> (a -> r) contramap = flip (.)


Versions 0.0.4
Change log None available
Dependencies base (<=4.9) [details]
License BSD-3-Clause
Uploaded by clintonmead at 2015-10-20T02:05:11Z




Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees