@@ -116,8 +116,7 @@ import Database.LSMTree.Internal.UniqCounter
116116import qualified Database.LSMTree.Internal.WriteBuffer as WB
117117import qualified Database.LSMTree.Internal.WriteBufferBlobs as WBB
118118import qualified System.FS.API as FS
119- import System.FS.API (FsError , FsErrorPath (.. ), FsPath , Handle ,
120- HasFS )
119+ import System.FS.API (FsError , FsErrorPath (.. ), FsPath , HasFS )
121120import qualified System.FS.API.Lazy as FS
122121import qualified System.FS.BlockIO.API as FS
123122import System.FS.BlockIO.API (HasBlockIO )
@@ -724,14 +723,14 @@ close t = do
724723 ResolveSerialisedValue
725724 -> V.Vector SerialisedKey
726725 -> Table IO h
727- -> IO (V.Vector (Maybe (Entry SerialisedValue (WeakBlobRef IO (Handle h) )))) #-}
726+ -> IO (V.Vector (Maybe (Entry SerialisedValue (WeakBlobRef IO h )))) #-}
728727-- | See 'Database.LSMTree.Normal.lookups'.
729728lookups ::
730729 (MonadST m , MonadSTM m , MonadThrow m )
731730 => ResolveSerialisedValue
732731 -> V. Vector SerialisedKey
733732 -> Table m h
734- -> m (V. Vector (Maybe (Entry SerialisedValue (WeakBlobRef m ( Handle h ) ))))
733+ -> m (V. Vector (Maybe (Entry SerialisedValue (WeakBlobRef m h ))))
735734lookups resolve ks t = do
736735 traceWith (tableTracer t) $ TraceLookups (V. length ks)
737736 withOpenTable t $ \ thEnv ->
@@ -753,15 +752,15 @@ lookups resolve ks t = do
753752 ResolveSerialisedValue
754753 -> Range SerialisedKey
755754 -> Table IO h
756- -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef IO (Handle h) ) -> res)
755+ -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef IO h ) -> res)
757756 -> IO (V.Vector res) #-}
758757-- | See 'Database.LSMTree.Normal.rangeLookup'.
759758rangeLookup ::
760759 (MonadFix m , MonadMask m , MonadMVar m , MonadST m , MonadSTM m )
761760 => ResolveSerialisedValue
762761 -> Range SerialisedKey
763762 -> Table m h
764- -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef m ( Handle h ) ) -> res )
763+ -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef m h ) -> res )
765764 -- ^ How to map to a query result, different for normal/monoidal
766765 -> m (V. Vector res )
767766rangeLookup resolve range t fromEntry = do
@@ -828,12 +827,12 @@ updates resolve es t = do
828827
829828{-# SPECIALISE retrieveBlobs ::
830829 Session IO h
831- -> V.Vector (WeakBlobRef IO (FS.Handle h) )
830+ -> V.Vector (WeakBlobRef IO h )
832831 -> IO (V.Vector SerialisedBlob) #-}
833832retrieveBlobs ::
834- (MonadFix m , MonadMask m , MonadST m , MonadSTM m )
833+ (MonadMask m , MonadST m , MonadSTM m )
835834 => Session m h
836- -> V. Vector (WeakBlobRef m ( FS. Handle h ) )
835+ -> V. Vector (WeakBlobRef m h )
837836 -> m (V. Vector SerialisedBlob )
838837retrieveBlobs sesh wrefs =
839838 withOpenSession sesh $ \ seshEnv ->
@@ -1023,7 +1022,7 @@ closeCursor Cursor {..} = do
10231022 ResolveSerialisedValue
10241023 -> Int
10251024 -> Cursor IO h
1026- -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef IO (Handle h) ) -> res)
1025+ -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef IO h ) -> res)
10271026 -> IO (V.Vector res) #-}
10281027-- | See 'Database.LSMTree.Normal.readCursor'.
10291028readCursor ::
@@ -1032,7 +1031,7 @@ readCursor ::
10321031 => ResolveSerialisedValue
10331032 -> Int -- ^ Maximum number of entries to read
10341033 -> Cursor m h
1035- -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef m ( Handle h ) ) -> res )
1034+ -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef m h ) -> res )
10361035 -- ^ How to map to a query result, different for normal/monoidal
10371036 -> m (V. Vector res )
10381037readCursor resolve n cursor fromEntry =
@@ -1043,7 +1042,7 @@ readCursor resolve n cursor fromEntry =
10431042 -> (SerialisedKey -> Bool)
10441043 -> Int
10451044 -> Cursor IO h
1046- -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef IO (Handle h) ) -> res)
1045+ -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef IO h ) -> res)
10471046 -> IO (V.Vector res) #-}
10481047-- | @readCursorWhile _ p n cursor _@ reads elements until either:
10491048--
@@ -1060,7 +1059,7 @@ readCursorWhile ::
10601059 -> (SerialisedKey -> Bool ) -- ^ Only read as long as this predicate holds
10611060 -> Int -- ^ Maximum number of entries to read
10621061 -> Cursor m h
1063- -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef m ( Handle h ) ) -> res )
1062+ -> (SerialisedKey -> SerialisedValue -> Maybe (WeakBlobRef m h ) -> res )
10641063 -- ^ How to map to a query result, different for normal/monoidal
10651064 -> m (V. Vector res )
10661065readCursorWhile resolve keyIsWanted n Cursor {.. } fromEntry = do
0 commit comments