[darcs-devel] [patch1896] move class ToFromPrim to RepoPatchV2 code

Ganesh Sittampalam bugs at darcs.net
Tue Aug 27 16:37:33 UTC 2019


Ganesh Sittampalam <ganesh at earth.li> added the comment:

On 27/08/2019 17:14, Ben Franksen wrote:

> However, a class with only one instance makes no sense. A plain function
> 
>   toPrim :: RepoPatchV2 prim wX wY -> prim wX wY
> 
> is what I'd go for.

The class/instance combination is needed to break the recursive knot.
The same is true of Nonable. The alternative would be hs-boot files.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/patch1896>
__________________________________


More information about the darcs-devel mailing list