File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
src/Database/LSMTree/Internal Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff 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.
518520instance SerialiseValue Void where
519521 serialiseValue = absurd
520522 deserialiseValue = error " deserialiseValue: cannot deserialise into Void"
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import Control.DeepSeq (NFData (..), deepseq)
1919import Data.Kind (Type )
2020import Data.Semigroup (Sum )
2121import Data.Typeable
22+ import Data.Void (Void )
2223import Data.Word (Word64 )
2324import qualified Database.LSMTree.Internal.BlobRef as Unsafe
2425import Database.LSMTree.Internal.RawBytes (RawBytes (.. ))
@@ -225,4 +226,6 @@ instance ResolveValue (ResolveAsFirst v) where
225226 resolveSerialised :: Proxy (ResolveAsFirst v ) -> RawBytes -> RawBytes -> RawBytes
226227 resolveSerialised _p = const
227228
229+ deriving via ResolveViaSemigroup Void instance ResolveValue Void
230+
228231deriving via (ResolveViaSemigroup (Sum v )) instance (Num v , SerialiseValue v ) => ResolveValue (Sum v )
You can’t perform that action at this time.
0 commit comments