mirror of
https://github.com/github/semantic.git
synced 2024-11-25 02:58:36 +03:00
Split the guards across multiple lines.
This commit is contained in:
parent
c0b9e66981
commit
cf63f4b222
@ -24,5 +24,7 @@ instance Monad Adjoined where
|
||||
|
||||
instance Coalescent a => Monoid (Adjoined a) where
|
||||
mempty = Adjoined mempty
|
||||
Adjoined a `mappend` Adjoined b | as :> a' <- viewr a, b' :< bs <- viewl b, Just coalesced <- coalesce a' b' = Adjoined (as >< (coalesced <| bs))
|
||||
Adjoined a `mappend` Adjoined b | as :> a' <- viewr a,
|
||||
b' :< bs <- viewl b,
|
||||
Just coalesced <- coalesce a' b' = Adjoined (as >< (coalesced <| bs))
|
||||
| otherwise = Adjoined (a >< b)
|
||||
|
Loading…
Reference in New Issue
Block a user