sai-shape-syb

Obtain homogeneous values from arbitrary values, transforming or culling data

http://fremissant.net/shape-syb

Latest on Hackage:0.3.4

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Andrew G. Seniuk
Maintained by Andrew Seniuk

This package provides SYB shape support: generic mapping to homogeneous types, and related features. Complements existing Uniplate and TH shape libraries.

Given a value of arbitrary complexity (mutually recursive heterogeneous constructor application), you can obtain a structure-preserving representation (homomorphism) as a homogeneous type Homo a, parameterised by any choice type a.

See the project homepage for more information.