Skip to content

Commit 98eb4f8

Browse files
committed
feat: add IsString for SnapshotLabel
1 parent 2257d92 commit 98eb4f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Database/LSMTree/Internal/Snapshot.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ import Control.Monad.Class.MonadThrow (MonadMask, bracket,
4444
import Control.Monad.Primitive (PrimMonad)
4545
import Control.RefCount
4646
import Data.Foldable (sequenceA_, traverse_)
47+
import Data.String (IsString (..))
4748
import Data.Text (Text)
4849
import qualified Data.Vector as V
4950
import Database.LSMTree.Internal.Config
@@ -90,7 +91,7 @@ import System.FS.BlockIO.API (HasBlockIO)
9091
-- is opened at the correct key\/value\/blob type.
9192
newtype SnapshotLabel = SnapshotLabel Text
9293
deriving stock (Show, Eq)
93-
deriving newtype NFData
94+
deriving newtype (NFData, IsString)
9495

9596
-- TODO: revisit if we need three table types.
9697
data SnapshotTableType = SnapNormalTable | SnapMonoidalTable | SnapFullTable

0 commit comments

Comments
 (0)