Skip to content

Commit 933a047

Browse files
committed
A SerialiseKey instance for Void
1 parent d87f9fa commit 933a047

File tree

1 file changed

+6
-4
lines changed
  • src/Database/LSMTree/Internal/Serialise

1 file changed

+6
-4
lines changed

src/Database/LSMTree/Internal/Serialise/Class.hs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,13 @@ instance SerialiseValue P.ByteArray where
510510
Void
511511
-------------------------------------------------------------------------------}
512512

513-
{- |
514-
This instance is intended for tables without blobs.
513+
-- | The implementation of 'deserialiseKey' throws an exception.
514+
instance SerialiseKey Void where
515+
serialiseKey = absurd
516+
deserialiseKey = error "deserialiseKey: cannot deserialise into Void"
515517

516-
The implementation of @'deserialiseValue'@ throws an excepValuen.
517-
-}
518+
519+
-- | The implementation of 'deserialiseValue' throws an exception.
518520
instance SerialiseValue Void where
519521
serialiseValue = absurd
520522
deserialiseValue = error "deserialiseValue: cannot deserialise into Void"

0 commit comments

Comments
 (0)