diff options
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 |