diff --git a/src/Data/Adjoined.hs b/src/Data/Adjoined.hs index fad3e9203..ec43f873b 100644 --- a/src/Data/Adjoined.hs +++ b/src/Data/Adjoined.hs @@ -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)