@@ -278,21 +278,25 @@ This module is intended to be imported qualified, to avoid name clashes with Pre
278
278
>>> :{
279
279
import Database.LSMTree (BlobRef, Cursor, RawBytes, ResolveValue (..),
280
280
SerialiseKey (..), SerialiseValue (..), Session, Table)
281
- import qualified Database.LSMTree as LSMT
282
281
:}
283
282
283
+ >>> import qualified Database.LSMTree as LSMT
284
+
284
285
=== Defining key, value, and BLOB types
285
286
286
287
The examples in this module use the types @Key@, @Value@, and @Blob@ for keys, values and BLOBs.
287
288
288
- >>> :{
289
- import Control.Exception (bracket)
290
- import Data.ByteString (ByteString)
291
- import Data.ByteString.Short (ShortByteString)
292
- import Data.Proxy (Proxy)
293
- import Data.String (IsString)
294
- import Data.Word (Word64)
295
- :}
289
+ >>> import Control.Exception (bracket)
290
+
291
+ >>> import Data.ByteString (ByteString)
292
+
293
+ >>> import Data.ByteString.Short (ShortByteString)
294
+
295
+ >>> import Data.Proxy (Proxy)
296
+
297
+ >>> import Data.String (IsString)
298
+
299
+ >>> import Data.Word (Word64)
296
300
297
301
The type @Key@ is a newtype wrapper around 'Data.Word.Word64'.
298
302
The required instance of 'SerialiseKey' is derived by @GeneralisedNewtypeDeriving@ from the preexisting instance for 'Data.Word.Word64'.
@@ -343,10 +347,9 @@ The examples in this module are wrapped in a call to @runExample@,
343
347
which creates a temporary session directory and
344
348
runs the example with access to an open 'Session' and a fresh 'Table'.
345
349
346
- >>> :{
347
- import qualified System.Directory as Dir
348
- import System.FilePath ((</>))
349
- :}
350
+ >>> import qualified System.Directory as Dir
351
+
352
+ >>> import System.FilePath ((</>))
350
353
351
354
>>> :{
352
355
runExample :: (Session IO -> Table IO Key Value Blob -> IO a) -> IO a
0 commit comments