[Haskell-cafe] Type synonyms vs standard types
Olex P
hoknamahn at gmail.com
Tue Sep 29 13:40:29 EDT 2009
Hi everyone,
Dumb question about declaring a function and type synonyms.
There are to different declarations of the same function:
attrNames :: String -> AttrDict -> [String]
attrNames :: AttrClass -> AttrDict -> AttrNames
First gives you the idea about exact types it expects (except AttrDict for
which user has to take a look into the docs or sources) while the second one
gives you the idea about meaning of parameters.
Both reasons make sense. The question is when which one should be used? I'm
using type synonyms everywhere and possibly without too much reasons...
Maybe I should stop doing it? :)
Cheers,
Oleksandr.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090929/2c0616fd/attachment.html
More information about the Haskell-Cafe
mailing list