@@ -155,35 +155,35 @@ testCases =
155 let e' = leftmost [e, e]
155 let e' = leftmost [e, e]
156 e'' <- switch <$> hold e' (fmap (const e) e)
156 e'' <- switch <$> hold e' (fmap (const e) e)
157 return (b, e'')
157 return (b, e'')
158− , (,) "switchPromptly-1" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
158+ , (,) "switchHoldPromptly-1" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
159 let e' = fmap (const e) e
159 let e' = fmap (const e) e
160− e'' <- switchPromptly never e'
160+ e'' <- switchHoldPromptly never e'
161 return (b, e'')
161 return (b, e'')
162− , (,) "switchPromptly-2" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
162+ , (,) "switchHoldPromptly-2" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
163 let e' = fmap (const e) e
163 let e' = fmap (const e) e
164− e'' <- switchPromptly never $ leftmost [e', e']
164+ e'' <- switchHoldPromptly never $ leftmost [e', e']
165 return (b, e'')
165 return (b, e'')
166− , (,) "switchPromptly-3" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
166+ , (,) "switchHoldPromptly-3" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
167 let e' = leftmost [e, e]
167 let e' = leftmost [e, e]
168− e'' <- switchPromptly never (fmap (const e) e')
168+ e'' <- switchHoldPromptly never (fmap (const e) e')
169 return (b, e'')
169 return (b, e'')
170− , (,) "switchPromptly-4" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj"), (3, "asdf")]) $ \(b, e) -> do
170+ , (,) "switchHoldPromptly-4" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj"), (3, "asdf")]) $ \(b, e) -> do
171 let e' = leftmost [e, e]
171 let e' = leftmost [e, e]
172− e'' <- switchPromptly never (fmap (const e') e)
172+ e'' <- switchHoldPromptly never (fmap (const e') e)
173 return (b, e'')
173 return (b, e'')
174 , (,) "switch-5" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
174 , (,) "switch-5" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
175 let e' = leftmost [e, e]
175 let e' = leftmost [e, e]
176 e'' <- switch <$> hold never (fmap (const e') e)
176 e'' <- switch <$> hold never (fmap (const e') e)
177 return (b, e'')
177 return (b, e'')
178− , (,) "switchPromptly-5" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
178+ , (,) "switchHoldPromptly-5" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
179 let e' = flip push e $ \_ -> do
179 let e' = flip push e $ \_ -> do
180 Just <$> headE e
180 Just <$> headE e
181− e'' <- switchPromptly never e'
181+ e'' <- switchHoldPromptly never e'
182 return (b, e'')
182 return (b, e'')
183− , (,) "switchPromptly-6" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
183+ , (,) "switchHoldPromptly-6" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
184 let e' = flip pushAlways e $ \_ -> do
184 let e' = flip pushAlways e $ \_ -> do
185− switchPromptly e never
185+ switchHoldPromptly e never
186− e'' <- switchPromptly never e'
186+ e'' <- switchHoldPromptly never e'
187 return (b, e'')
187 return (b, e'')
188 , (,) "coincidence-1" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
188 , (,) "coincidence-1" $ TestCase (Map.singleton 0 (0 :: Int), Map.fromList [(1, "qwer"), (2, "lkj")]) $ \(b, e) -> do
189 let e' = flip pushAlways e $ \_ -> return e
189 let e' = flip pushAlways e $ \_ -> return e