Skip to content

Commit 09f452b

Browse files
committed
We use fail in servant-pipes
1 parent b04261b commit 09f452b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servant-pipes/src/Servant/Pipes.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ instance (MonadIO m, a' ~ X, a ~ (), b' ~ (), r ~ ())
6565
fromSourceIO src = M $ liftIO $ S.unSourceT src (return . go) where
6666
go :: S.StepT IO b -> Proxy X () () b m ()
6767
go S.Stop = Pure ()
68-
go (S.Error err) = M (fail err)
68+
go (S.Error err) = M (liftIO (fail err))
6969
go (S.Skip s) = go s -- drives
7070
go (S.Effect ms) = M (liftIO (fmap go ms))
7171
go (S.Yield x s) = Respond x (const (go s))

0 commit comments

Comments
 (0)