diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-06-03 20:32:11 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-06-03 20:32:11 +0200 |
| commit | 2f403246cb0eb4a0c39598f03cb2116ad00fc500 (patch) | |
| tree | 4d904764801795c50bf050cbf016070cdf60118b /src/Erebos/Storage/Internal.hs | |
| parent | 0af593143966fb5d75cabec0695d8a0587cbdd7e (diff) | |
Move Stored declaration to Object.Storable module
Diffstat (limited to 'src/Erebos/Storage/Internal.hs')
| -rw-r--r-- | src/Erebos/Storage/Internal.hs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/Erebos/Storage/Internal.hs b/src/Erebos/Storage/Internal.hs index 70a69b4..c7255ef 100644 --- a/src/Erebos/Storage/Internal.hs +++ b/src/Erebos/Storage/Internal.hs @@ -19,7 +19,6 @@ module Erebos.Storage.Internal ( Generation(..), HeadID(..), HeadTypeID(..), - Stored(..), storedStorage, ) where import Control.Arrow @@ -35,7 +34,6 @@ import Data.ByteArray qualified as BA import Data.ByteString (ByteString) import Data.ByteString.Char8 qualified as BC import Data.ByteString.Lazy qualified as BL -import Data.Function import Data.HashTable.IO qualified as HT import Data.Hashable import Data.Kind @@ -238,21 +236,6 @@ newtype HeadID = HeadID UUID newtype HeadTypeID = HeadTypeID UUID deriving (Eq, Ord) -data Stored a = Stored - { storedRef' :: Ref - , storedObject' :: a - } - deriving (Show) - -instance Eq (Stored a) where - (==) = (==) `on` (refDigest . storedRef') - -instance Ord (Stored a) where - compare = compare `on` (refDigest . storedRef') - -storedStorage :: Stored a -> Storage -storedStorage = refStorage . storedRef' - type Complete = Identity type Partial = Either RefDigest |