mirror of
https://github.com/github/semantic.git
synced 2024-11-24 08:54:07 +03:00
TODO for sums
This commit is contained in:
parent
78ad74372c
commit
f839e79ac1
@ -65,6 +65,7 @@ instance (GFields f, GFields g) => GFields (f :*: g) where
|
||||
instance (GMarshalJSON f, GMarshalJSON g) => GMarshalJSON (f :+: g) where
|
||||
gmarshal (L1 f) = gmarshal f
|
||||
gmarshal (R1 g) = gmarshal g
|
||||
-- TODO: not much point in generating objects for the L1/R1 portions of sums; we probably want to just spit out their contents, flattening the sum
|
||||
|
||||
-- GValue for leaves
|
||||
instance ToJSON a => GValue (K1 i a) where
|
||||
|
Loading…
Reference in New Issue
Block a user