name: generalised-functor version: 0.0.2 cabal-version: 1.12 build-type: Simple license: BSD3 maintainer: clintonmead@gmail.com stability: Experimental synopsis: Generalisng Functors description: 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 (.) author: clintonmead@gmail.com library exposed-modules: Control.GeneralisedFunctor.Functor build-depends: base <=4.9 default-language: Haskell2010 hs-source-dirs: src ghc-options: -ferror-spans test-suite test-generalised-functor type: exitcode-stdio-1.0 main-is: Main.hs build-depends: base <=4.9 default-language: Haskell2010 hs-source-dirs: src test other-modules: Control.GeneralisedFunctor.Functor ghc-options: -ferror-spans