[Haskell-beginners] Haddock question
daniel.is.fischer at googlemail.com
Tue Apr 5 23:22:30 CEST 2011
On Tuesday 05 April 2011 23:06:37, Stephen Tetley wrote:
> The common way to export type classes is
> I'm not sure what happens if you export the "closed" class and the
> methods separately - I'd guess it means you can use the methods and
> put the class name in type signatures but can't declare new instances.
You can. It's just uncommon to export the methods separate from the class,
and maybe a little bug-prone for refactoring.
It's a style warning, haddock gives, nothing more.
> As I've never needed to close classes, it's not something I've looked
More information about the Beginners