[Haskell-cafe] Re: Module.T naming style

Henning Thielemann lemming at henning-thielemann.de
Mon Jul 18 13:05:13 EDT 2005


On Fri, 15 Jul 2005, John Meacham wrote:

> I also make sure that the T is a type synonym for the actual name. as in
>
> module Vector where
>
> data Vector = ...
> type T = Vector

I had to use type synonymes sometimes to avoid mutually recursive modules.
It has the disadvantage that a type synonyme can't be made an instance of
a type class. I also like to use names like TypeClass.C for type classes
where it is even more difficult because there are no type class synonymes.
(Only class A a => B a )



More information about the Haskell-Cafe mailing list