mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
Simpler definition of liftTiers2 over (,).
This commit is contained in:
parent
ad81f4f605
commit
319ecc61ce
@ -95,7 +95,7 @@ instance Listable1 Maybe where
|
||||
liftTiers tiers = cons0 Nothing \/ liftCons1 tiers Just
|
||||
|
||||
instance Listable2 (,) where
|
||||
liftTiers2 = productWith (,)
|
||||
liftTiers2 = (><)
|
||||
|
||||
instance Listable2 Either where
|
||||
liftTiers2 leftTiers rightTiers = liftCons1 leftTiers Left \/ liftCons1 rightTiers Right
|
||||
|
Loading…
Reference in New Issue
Block a user