mirror of
https://github.com/nikita-volkov/hasql.git
synced 2024-11-22 01:52:45 +03:00
Fix the compatibility issues in benchmarks and tests
This commit is contained in:
parent
8facbbdb32
commit
3de214198a
@ -51,7 +51,7 @@ sessionWithManyLargeResults :: B.Session [Vector (Int64, Int64)]
|
||||
sessionWithManyLargeResults =
|
||||
replicateM 1000 (B.statement () statementWithManyRowsInVector)
|
||||
|
||||
sessionWithSingleLargeResultInList :: B.Session (List (Int64, Int64))
|
||||
sessionWithSingleLargeResultInList :: B.Session [(Int64, Int64)]
|
||||
sessionWithSingleLargeResultInList =
|
||||
B.statement () statementWithManyRowsInList
|
||||
|
||||
@ -102,6 +102,6 @@ statementWithManyRowsInVector :: C.Statement () (Vector (Int64, Int64))
|
||||
statementWithManyRowsInVector =
|
||||
statementWithManyRows D.rowVector
|
||||
|
||||
statementWithManyRowsInList :: C.Statement () (List (Int64, Int64))
|
||||
statementWithManyRowsInList :: C.Statement () [(Int64, Int64)]
|
||||
statementWithManyRowsInList =
|
||||
statementWithManyRows D.rowList
|
||||
|
@ -42,7 +42,7 @@ sessionWithSingleLargeResultInVector :: B.Session (Vector (Int64, Int64))
|
||||
sessionWithSingleLargeResultInVector =
|
||||
B.statement () statementWithManyRowsInVector
|
||||
|
||||
sessionWithSingleLargeResultInList :: B.Session (List (Int64, Int64))
|
||||
sessionWithSingleLargeResultInList :: B.Session [(Int64, Int64)]
|
||||
sessionWithSingleLargeResultInList =
|
||||
B.statement () statementWithManyRowsInList
|
||||
|
||||
@ -93,6 +93,6 @@ statementWithManyRowsInVector :: C.Statement () (Vector (Int64, Int64))
|
||||
statementWithManyRowsInVector =
|
||||
statementWithManyRows D.rowVector
|
||||
|
||||
statementWithManyRowsInList :: C.Statement () (List (Int64, Int64))
|
||||
statementWithManyRowsInList :: C.Statement () [(Int64, Int64)]
|
||||
statementWithManyRowsInList =
|
||||
statementWithManyRows D.rowList
|
||||
|
@ -1,6 +1,7 @@
|
||||
module Main.Prelude
|
||||
(
|
||||
module Exports,
|
||||
mapLeft,
|
||||
)
|
||||
where
|
||||
|
||||
@ -8,3 +9,8 @@ where
|
||||
-- rerebase
|
||||
-------------------------
|
||||
import Prelude as Exports
|
||||
|
||||
{-# INLINE mapLeft #-}
|
||||
mapLeft :: (a -> c) -> Either a b -> Either c b
|
||||
mapLeft f =
|
||||
either (Left . f) Right
|
||||
|
Loading…
Reference in New Issue
Block a user