[Haskell-cafe] Type synonyms vs standard types
hoknamahn at gmail.com
Tue Sep 29 13:40:29 EDT 2009
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? :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe