Skip to content

Commit

Permalink
upgrade to curryer-rpc 0.3.8 and fix deserialiseOnly naming conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
agentm committed Dec 21, 2024
1 parent a07f629 commit 1690baf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion project-m36.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Library
cryptohash-sha256,
text-manipulate >= 0.2.0.1 && < 0.4,
winery >= 1.4,
curryer-rpc>=0.3.7,
curryer-rpc>=0.3.8,
network,
async,
vector-instances,
Expand Down
6 changes: 3 additions & 3 deletions src/lib/ProjectM36/Cache/Tuple.hs
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,16 @@ readTupleStream h = SD.unCross $ do
let readTupleBlock (offset', byteLength) = liftIO $ do
-- print ("readTupleBlock", offset', byteLength)
hSeek h AbsoluteSeek (fromIntegral offset')
tuples <- deserialiseOnly <$> BS.hGet h (fromIntegral byteLength)
tuples <- deserialiseOnly' <$> BS.hGet h (fromIntegral byteLength)
case tuples of
Left err -> throw err
Right tuples' -> do
-- print ("readTupleBlock", tuples')
pure $ SP.fromList tuples'
SD.mkCross $ SP.concatMapM readTupleBlock (SP.fromList (V.toList (blockSizes tupleCacheInfo)))

deserialiseOnly :: forall s. Serialise s => BS.ByteString -> Either WineryException s
deserialiseOnly bytes = do
deserialiseOnly' :: forall s. Serialise s => BS.ByteString -> Either WineryException s
deserialiseOnly' bytes = do
dec <- getDecoder (schema (Proxy :: Proxy s))
pure (evalDecoder dec bytes)

Expand Down

0 comments on commit 1690baf

Please sign in to comment.