From 2f403246cb0eb4a0c39598f03cb2116ad00fc500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Wed, 3 Jun 2026 20:32:11 +0200 Subject: Move Stored declaration to Object.Storable module --- src/Erebos/Storage/Internal.hs | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/Erebos/Storage/Internal.hs') 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 -- cgit v1.2.3