[Haskell-cafe] Tips for converting Prolog to typeclasses?