Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 2430e16

Browse files
committed
Avoid using wrap.
1 parent 40c467f commit 2430e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Assigning/Assignment.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ choice :: (Enum grammar, Eq1 ast, Ix grammar, HasCallStack) => [Assignment ast g
200200
choice [] = empty
201201
choice alternatives
202202
| null choices = asum alternatives
203-
| otherwise = tracing (Choose (Table.fromListWith (<|>) choices) (wrap . tracing . Alt . toList <$> nonEmpty atEnd) (mergeHandlers handlers)) `Then` pure
203+
| otherwise = tracing (Choose (Table.fromListWith (<|>) choices) ((`Then` id) . tracing . Alt . toList <$> nonEmpty atEnd) (mergeHandlers handlers)) `Then` pure
204204
where (choices, atEnd, handlers) = foldMap toChoices alternatives
205205
toChoices :: (Enum grammar, Ix grammar) => Assignment ast grammar a -> ([(grammar, Assignment ast grammar a)], [Assignment ast grammar a], [Error (Either String grammar) -> Assignment ast grammar a])
206206
toChoices rule = case rule of

0 commit comments

Comments
 (0)