File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -3551,10 +3551,7 @@ fromSet f = runIdentity . fromSetA (pure . f)
35513551fromSetA :: Applicative f => (k -> f a ) -> Set. Set k -> f (Map k a )
35523552fromSetA _ Set. Tip = pure Tip
35533553fromSetA f (Set. Bin sz x l r) =
3554- flip (Bin sz x)
3555- <$> fromSetA f l
3556- <*> f x
3557- <*> fromSetA f r
3554+ liftA3 (flip (Bin sz x)) (fromSetA f l) (f x) (fromSetA f r)
35583555#if __GLASGOW_HASKELL__
35593556{-# INLINABLE fromSetA #-}
35603557#else
Original file line number Diff line number Diff line change @@ -1482,10 +1482,8 @@ fromSet f = runIdentity . fromSetA (pure . f)
14821482fromSetA :: Applicative f => (k -> f a ) -> Set. Set k -> f (Map k a )
14831483fromSetA _ Set. Tip = pure Tip
14841484fromSetA f (Set. Bin sz x l r) =
1485- flip (Bin sz x $! )
1486- <$> fromSetA f l
1487- <*> f x
1488- <*> fromSetA f r
1485+ liftA3 (flip (Bin sz x) $! ) (fromSetA f l) (f x) (fromSetA f r)
1486+
14891487#if __GLASGOW_HASKELL__
14901488{-# INLINABLE fromSetA #-}
14911489#else
You can’t perform that action at this time.
0 commit comments