Skip to content

Commit 69d86da

Browse files
committed
inline MkSolo usages when needed
1 parent eb33e4a commit 69d86da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

containers-tests/tests/intmap-strictness.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ prop_strictFromSet fun set =
7373

7474
prop_strictFromSetA :: Func Key (Bot A) -> IntSet -> Property
7575
prop_strictFromSetA fun set =
76-
isBottom (getSolo (M.fromSetA f set)) === any (isBottom . getSolo . f) (IntSet.toList set)
76+
isBottom (getSolo (M.fromSetA (MkSolo . f) set)) === any (isBottom . f) (IntSet.toList set)
7777
where
78-
f = MkSolo . applyFunc fun
78+
f = applyFunc fun
7979

8080
prop_lazyFromSet :: Func Key (Bot A) -> IntSet -> Property
8181
prop_lazyFromSet fun set = isNotBottomProp (L.fromSet f set)

containers-tests/tests/map-strictness.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ prop_strictFromSet fun set =
137137

138138
prop_strictFromSetA :: Func OrdA (Bot A) -> Set OrdA -> Property
139139
prop_strictFromSetA fun set =
140-
isBottom (getSolo (M.fromSetA f set)) === any (isBottom . getSolo . f) (Set.toList set)
140+
isBottom (getSolo (M.fromSetA (MkSolo . f) set)) === any (isBottom . f) (Set.toList set)
141141
where
142-
f = MkSolo . applyFunc fun
142+
f = applyFunc fun
143143

144144
prop_lazyFromSet :: Func OrdA (Bot A) -> Set OrdA -> Property
145145
prop_lazyFromSet fun set = isNotBottomProp (L.fromSet f set)

0 commit comments

Comments
 (0)