1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00

Supply a default implementation of sequenceL.

This commit is contained in:
Rob Rix 2016-03-10 12:54:17 -05:00
parent 05d5d69cfc
commit 2cd47afafd

View File

@ -19,6 +19,7 @@ instance Align [] where
class Crosswalk t where
crosswalk :: Align f => (a -> f b) -> t a -> f (t b)
sequenceL :: Align f => t (f a) -> f (t a)
sequenceL = crosswalk id
instance Crosswalk Identity where
sequenceL = fmap Identity . runIdentity