[Haskell-cafe] Type inference algorithm in Prolog and Haskell