We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d60331 commit 0d42885Copy full SHA for 0d42885
Data/Default.hs
@@ -82,6 +82,9 @@ instance (Default a) => GDefault (K1 i a) where
82
instance (GDefault a, GDefault b) => GDefault (a :*: b) where
83
gdef = gdef :*: gdef
84
85
+instance (GDefault a) => GDefault (a :+: b) where
86
+ gdef = L1 gdef
87
+
88
instance (GDefault a) => GDefault (M1 i c a) where
89
gdef = M1 gdef
90
0 commit comments