@hackage / constrained

Generalization of standard Functor, Foldable, and Traversable classes

Latest0.1

About

Metadata

  • Last updated , by SergeyVinokurov
  • License BSD-2-Clause
  • Maintained by: Sergey Vinokurov <serg.foo@gmail.com>

  • Lottery factor: 0

Links

Installation

Tested Compilers

  1. 8.8.1
  2. 8.6.5
  3. 8.4.4
  4. 8.2.2

Readme

This package generalizes familiar Functor, Foldable and Traversable for the case when a functorial type of kind Type -> Type imposes certain constraints on what can be put in. E.g. Set can only deal with types that are an instance of Ord and therefore cannot be made an instance of Functor. But it can be made an instance of a constrained functor with a similar interface that this package provides.