Skip to content

Commit 9ad78e7

Browse files
committed
Tests will fail but at least they won't loop
1 parent 1297035 commit 9ad78e7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Control/Monad/Logic/Sequence/Internal.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,9 @@ data BindSState a b m
359359

360360
bind_s :: Monad m => StreamM m a -> (a -> StreamM m b) -> StreamM m b
361361
bind_s (StreamM next_a a0) f = StreamM next (Boundary a0) where
362+
next _ = return undefined
363+
-- TODO: fixme: this is an infinite loop right now
364+
{-
362365
{-# INLINE next #-}
363366
next (Boundary s_a) = do
364367
x <- next_a s_a
@@ -373,6 +376,7 @@ bind_s (StreamM next_a a0) f = StreamM next (Boundary a0) where
373376
Yield b bs -> Yield b (InProgress s_a next_fa bs)
374377
Skip bs -> Skip (InProgress s_a next_fa bs)
375378
Done -> Skip (Boundary s_a)
379+
-}
376380
{-# INLINE[1] bind_s #-}
377381

378382
instance Monad m => Fail.MonadFail (SeqT m) where

0 commit comments

Comments
 (0)