mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-12-29 13:33:03 +03:00
Remove SCCs
This commit is contained in:
parent
dc21a81d36
commit
d4a6c0aebd
@ -256,7 +256,6 @@ single s =
|
||||
-- and produce a vector of results.
|
||||
list :: Backend b => RowParser b r => Backend.Statement b -> Tx b s [r]
|
||||
list s =
|
||||
{-# SCC "list" #-}
|
||||
Tx $ ReaderT $ \c -> do
|
||||
m <- Backend.executeAndGetMatrix s c
|
||||
traverse (either (throwIO . UnparsableRow) return . RowParser.parseRow) $ Vector.toList m
|
||||
@ -271,7 +270,6 @@ list s =
|
||||
-- so a 'NotInTransaction' error will be raised if you run it improperly.
|
||||
stream :: Backend b => RowParser b r => Backend.Statement b -> TxListT s (Tx b s) r
|
||||
stream s =
|
||||
{-# SCC "stream" #-}
|
||||
do
|
||||
s <- lift $ Tx $ ReaderT $ \c -> Backend.executeAndStream s c
|
||||
TxListT $ hoist (Tx . lift) $ do
|
||||
|
Loading…
Reference in New Issue
Block a user