
5 Apr
2011
5 Apr
'11
9:22 p.m.
On Tuesday 05 April 2011 23:06:37, Stephen Tetley wrote:
The common way to export type classes is
Nte(..)
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 into.