Private classes
Joachim Breitner
mail at joachim-breitner.de
Sat Aug 17 21:49:51 CEST 2013
Hi,
Am Samstag, den 17.08.2013, 20:34 +0200 schrieb Bas van Dijk:
> I used the following in the past:
>
> module M (PublicClass(..)) where
>
> class HiddenClass a
>
> class HiddenClass a => PublicClass a where
> ...
> ...
>
> Now users of M can't declare instances of PublicClass because they
> don't have its superclass HiddenClass in scope.
nice idea! Unfortunately not quite what I need; I still want the user to
be able to use standalone deriving instances for the class.
Greetings,
Joachim
--
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20130817/65c24d1a/attachment.pgp>
More information about the Glasgow-haskell-users
mailing list