From 5893c9c01972971b5d6e8adc7ed39b3ba4020427 Mon Sep 17 00:00:00 2001 From: Wen Kokke Date: Thu, 8 May 2025 12:36:05 +0100 Subject: [PATCH 1/3] fix: merge imports in docs --- src/Database/LSMTree.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Database/LSMTree.hs b/src/Database/LSMTree.hs index 786bec204..b1bfa1a61 100644 --- a/src/Database/LSMTree.hs +++ b/src/Database/LSMTree.hs @@ -278,13 +278,12 @@ The examples in this module use the preamble described in this section, which do This module is intended to be imported qualified, to avoid name clashes with Prelude functions. +>>> import qualified Database.LSMTree as LSMT >>> :{ import Database.LSMTree (BlobRef, Cursor, RawBytes, ResolveValue (..), SerialiseKey (..), SerialiseValue (..), Session, Table) :} ->>> import qualified Database.LSMTree as LSMT - === Defining key, value, and BLOB types The examples in this module use the types @Key@, @Value@, and @Blob@ for keys, values and BLOBs. From 0bf11445ebcbb2c37daf3dde39d9cc8ac3e59274 Mon Sep 17 00:00:00 2001 From: Wen Kokke Date: Thu, 8 May 2025 12:40:22 +0100 Subject: [PATCH 2/3] fix: inline big import --- src/Database/LSMTree.hs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Database/LSMTree.hs b/src/Database/LSMTree.hs index b1bfa1a61..1d09dad81 100644 --- a/src/Database/LSMTree.hs +++ b/src/Database/LSMTree.hs @@ -278,11 +278,8 @@ The examples in this module use the preamble described in this section, which do This module is intended to be imported qualified, to avoid name clashes with Prelude functions. +>>> import Database.LSMTree (BlobRef, Cursor, RawBytes, ResolveValue (..), SerialiseKey (..), SerialiseValue (..), Session, Table) >>> import qualified Database.LSMTree as LSMT ->>> :{ -import Database.LSMTree (BlobRef, Cursor, RawBytes, ResolveValue (..), - SerialiseKey (..), SerialiseValue (..), Session, Table) -:} === Defining key, value, and BLOB types From 6c8298baa6d7ef9fd8dbcc1343baab19c55ceaa6 Mon Sep 17 00:00:00 2001 From: Wen Kokke Date: Thu, 8 May 2025 12:51:35 +0100 Subject: [PATCH 3/3] fix: remove import of finally --- src/Database/LSMTree.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/LSMTree.hs b/src/Database/LSMTree.hs index 1d09dad81..b74f011ff 100644 --- a/src/Database/LSMTree.hs +++ b/src/Database/LSMTree.hs @@ -340,7 +340,7 @@ The examples in this module are wrapped in a call to @runExample@, which creates a temporary session directory and runs the example with access to an open 'Session' and a fresh 'Table'. ->>> import Control.Exception (bracket, bracket_, finally) +>>> import Control.Exception (bracket, bracket_) >>> import Data.Foldable (traverse_) >>> import qualified System.Directory as Dir >>> import System.FilePath (())