[Haskell-cafe] Building "production stable" software in Haskell

Don Stewart dons at galois.com
Tue Sep 18 12:59:50 EDT 2007


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


More information about the Haskell-Cafe mailing list