MetaObject-0.0.1: A meta-object system for Haskell based on Perl 6ContentsIndex
MO.Util.C3
Portabilityportable
Stabilityexperimental
Maintainercmarcelo@gmail.com
Description

C3 method resolution order implementation based on algorithm described in The Python 2.3 Method Resolution Order, v1.4, by Michele Simionato available at http://www.python.org/download/releases/2.3/mro/. Some tests also copied from Perl module Algorithm::C3.

The main function contains the test cases.

Synopsis
linearize :: (Monad m, Eq a) => (a -> m [a]) -> a -> m [a]
Documentation
linearize :: (Monad m, Eq a) => (a -> m [a]) -> a -> m [a]
Returns the a linearization using C3 algorithm. Takes a function and an element. We can apply the function in this element to obtain its parents.
Produced by Haddock version 2.1.0