BSD-3-Clause licensed by Andy Gill
Maintained by Andy Gill

Module documentation for 0.4

This version can be pinned in stack with:[email protected]:3d361b6ae718c6c06b2e260bf3f06ea44fc04b535377654c4221dbff43bb20c9,2206

natural-transformation Hackage version Build Status

A natural transformation transforms a container f a into another container g a. Natural transformations act as functor morphisms in category theory. Technically, f and g should be functors, but we allow any correctly-shaped structure.



  • Rename Nat constructor to NT
  • Rename run to unwrapNT
  • Rename nat to wrapNT
  • Backport the Semigroup instance for (:~>) by conditionally depending on the semigroups package


  • Adding run and nat.


  • Adding Object
  • Rolled Control.Transformation into Control.Natural
  • Added RULES module
  • Required GHC 7.8 or greater
  • Semigroup instance for (:~>) on GHC 8.0 and up


  • Require GHC 7.6 or greater
  • Exposed ~> type synonym


  • Initial commit
Depends on 1 package(full list with versions):