Skip to content

Commit

Permalink
Fix recursive case of combine @(->) @These @(,) (ListT m)
Browse files Browse the repository at this point in the history
  • Loading branch information
solomon-b committed Jan 16, 2024
1 parent e51085d commit ea250aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat-bots/src/Control/Monad/ListT.hs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ instance Monad m => Functor.Semigroupal (->) These (,) (ListT m) where
(NilF, NilF) -> NilF
(ConsF x' xs, NilF) -> ConsF (This x') (fmap This xs)
(NilF, ConsF y' ys) -> ConsF (That y') (fmap That ys)
(ConsF x' xs, ConsF y' ys) -> ConsF (These x' y') (align xs ys)
(ConsF x' xs, ConsF y' ys) -> ConsF (These x' y') (Functor.combine (xs, ys))

instance MonadTrans ListT where
lift :: Monad m => m a -> ListT m a
Expand Down

0 comments on commit ea250aa

Please sign in to comment.