File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
src/Database/LSMTree/Internal Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ runChecksumsPath :: RunFsPaths -> FsPath
209209runChecksumsPath = flip runFilePathWithExt " checksums"
210210
211211runFilePathWithExt :: RunFsPaths -> String -> FsPath
212- runFilePathWithExt (RunFsPaths dir n ) ext =
212+ runFilePathWithExt (RunFsPaths dir ( RunNumber n) ) ext =
213213 dir </> mkFsPath [show n] <.> ext
214214
215215runFileExts :: ForRunFiles String
@@ -311,7 +311,7 @@ writeBufferChecksumsPath :: WriteBufferFsPaths -> FsPath
311311writeBufferChecksumsPath = flip writeBufferFilePathWithExt " checksums"
312312
313313writeBufferFilePathWithExt :: WriteBufferFsPaths -> String -> FsPath
314- writeBufferFilePathWithExt (WriteBufferFsPaths dir n ) ext =
314+ writeBufferFilePathWithExt (WriteBufferFsPaths dir ( RunNumber n) ) ext =
315315 dir </> mkFsPath [show n] <.> ext
316316
317317
Original file line number Diff line number Diff line change @@ -7,10 +7,13 @@ module Database.LSMTree.Internal.RunNumber (
77import Control.DeepSeq (NFData )
88
99newtype RunNumber = RunNumber Int
10- deriving newtype (Eq , Ord , Show , NFData )
10+ deriving stock (Eq , Ord , Show )
11+ deriving newtype (NFData )
1112
1213newtype TableId = TableId Int
13- deriving newtype (Eq , Ord , Show , NFData )
14+ deriving stock (Eq , Ord , Show )
15+ deriving newtype (NFData )
1416
1517newtype CursorId = CursorId Int
16- deriving newtype (Eq , Ord , Show , NFData )
18+ deriving stock (Eq , Ord , Show )
19+ deriving newtype (NFData )
You can’t perform that action at this time.
0 commit comments