on master help sign in
Unified two GFromProduct instances
commit3e2d9ca5b931703bc10a0f2ec162dc259dc8bce6 authorBas van Dijk <v.dijk.bas@gmail.com> dateThu 22 Sep 2011, 19:49 (15 years ago) parente25d27b
1 file changed+1−3
Data/Aeson/Types/Internal.hs+1−3
Data/Aeson/Types/Internal.hs+1−3
@@ -1011,12 +1011,10 @@ instance (GFromProduct a, GFromProduct b) => GFromProduct (a :*: b) where
10111011 where
10121012 (arrL, arrR) = V.splitAt (V.length arr `div` 2) arr
10131013
1014−instance (GFromJSON a) => GFromProduct (S1 NoSelector a) where
1014+instance (GFromJSON a) => GFromProduct a where
10151015 gParseProduct ((!? 0) -> Just v) = gParseJSON v
10161016 gParseProduct _ = fail "Array to small"
10171017
1018−instance GFromProduct (M1 i c f) where gParseProduct = undefined
1019−
10201018--------------------------------------------------------------------------------
10211019
10221020class GObject f where