mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
Crosswalks imply Functors.
This commit is contained in:
parent
d792ddcd57
commit
64baf04a31
@ -16,7 +16,7 @@ instance Align [] where
|
||||
alignWith f (a : as) (b : bs) = f (These a b) : alignWith f as bs
|
||||
|
||||
|
||||
class Crosswalk t where
|
||||
class Functor t => 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
|
||||
|
Loading…
Reference in New Issue
Block a user