relaxing instance declarations

Edward Kmett ekmett at gmail.com
Sun Apr 28 18:06:07 CEST 2013


You can always put those helper functions in the class and then just not
export them from the module.


On Sun, Apr 28, 2013 at 10:49 AM, Doug McIlroy <doug at cs.dartmouth.edu>wrote:

> Is there any strong reason why the where clause in an instance
> declaration cannot declare anything other than class
> operators? If not, I suggest relaxing the restriction.
>
> It is not unusual for declarations of class operators to
> refer to special auxiliary functions. Under current rules
> such functions have to be declared outside the scope in
> which they are used.
>
> Doug McIlroy
>
> _______________________________________________
> Haskell-prime mailing list
> Haskell-prime at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-prime
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-prime/attachments/20130428/49723a19/attachment.htm>


More information about the Haskell-prime mailing list