1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 22:31:36 +03:00

Define GSequenceable over Rec1.

This commit is contained in:
Rob Rix 2016-07-22 15:57:47 -04:00
parent bc5f05494d
commit 9a94dddd2b

View File

@ -22,3 +22,6 @@ instance GSequenceable Par1 where
instance GSequenceable (K1 i c) where instance GSequenceable (K1 i c) where
gsequenceAlt (K1 a) = pure (K1 a) gsequenceAlt (K1 a) = pure (K1 a)
instance GSequenceable f => GSequenceable (Rec1 f) where
gsequenceAlt (Rec1 a) = Rec1 <$> gsequenceAlt a