hughperkins: > Just out of curiosity, how could one do something like a factory, so > that by default a library uses, say, Data.Map, but by making a simple > assignment we can switch the library to use a different > implementation?
Polymorphism, specifically, typeclasses, would be one option here. -- Don _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe