Edward A Kmett
ekmett at gmail.com
Sun Aug 18 03:28:12 CEST 2013
If you don't export the methods but do use DefaultSignatures for them in terms of a GHC.Generics version of the class that also works in many cases.
Sent from my iPhone
On Aug 17, 2013, at 2:08 PM, Joachim Breitner <mail at joachim-breitner.de> wrote:
> for some reason I was under the impression that if I don’t export the
> methods of a class, then no user of my module can create instances. But
> I was wrong and in fact they can; the methods will just all be bound to
> "error ...".
> Is there really no way to create a class so that no-one else can create
> any instances?
> Joachim “nomeata” Breitner
> mail at joachim-breitner.de • http://www.joachim-breitner.de/
> Jabber: nomeata at joachim-breitner.de • GPG-Key: 0x4743206C
> Debian Developer: nomeata at debian.org
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
More information about the Glasgow-haskell-users