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:
parent
05d5d69cfc
commit
2cd47afafd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user