The author of edison, Chris Okasaki, wrote a book called "Purely
Functional Data Structures" (Cambridge University Press). It goes a long
way toward explaining the rationale of many of the structures.
On Wed, 31 Jul 2002 [EMAIL PROTECTED] wrote:
> Thanks, and it works! Another question is wher
Thanks, and it works! Another question is where can I find some
documentation on these heap modules? What is the difference
between SkewHeap, LazyPairingHeap, SplayHeap, UnbalancedSet, etc?
I couldn't find any in GHC's documentation.
Regards,
.paul.
On Tue, Jul 30, 2002 at 11:22:26AM -0700, Bri
The Collection module just defines the OrdColl class, without giving any
instances for it. To use the Collection module directly, you would have to
define one or more instances yourself, something like this:
data Bag a = ...
instance OrdColl Bag a where
insert a c = ...
minElem c = ...
..
I'm no edison expert but it seems the problem simply is that you're using
overloaded functions and the compiler can't tell which instance you're
trying to use. Try adding a type signature to the definition of sorted
(I'm not familiar enough with edision to know what the type is) but
something lik