Skip to content

Commit

Permalink
Correct the order of language and import declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
jeltsch committed Dec 6, 2024
1 parent 0b36ff3 commit 42bbe9a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Database/LSMTree/Internal/ChecksumHandle.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import Control.Monad.Primitive
import Data.BloomFilter (Bloom)
import qualified Data.ByteString.Lazy as BSL
import Data.Primitive.PrimVar
import GHC.Exts (Proxy#)
import Data.Word (Word64)
import Database.LSMTree.Internal.BlobRef (BlobSpan (..), RawBlobRef)
import qualified Database.LSMTree.Internal.BlobRef as BlobRef
Expand All @@ -47,6 +46,7 @@ import qualified Database.LSMTree.Internal.RawOverflowPage as RawOverflowPage
import Database.LSMTree.Internal.RawPage (RawPage)
import qualified Database.LSMTree.Internal.RawPage as RawPage
import Database.LSMTree.Internal.Serialise
import GHC.Exts (Proxy#)
import qualified System.FS.API as FS
import System.FS.API
import qualified System.FS.BlockIO.API as FS
Expand Down
2 changes: 1 addition & 1 deletion src/Database/LSMTree/Internal/Index.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ where
import Control.Monad.ST.Strict (ST)
import Data.ByteString.Lazy (LazyByteString)
import Data.ByteString.Short (ShortByteString)
import GHC.Exts (Proxy#)
import Data.Word (Word32)
import Database.LSMTree.Internal.Chunk (Chunk)
import Database.LSMTree.Internal.Entry (NumEntries)
import Database.LSMTree.Internal.Page (NumPages, PageSpan)
import Database.LSMTree.Internal.Serialise (SerialisedKey)
import GHC.Exts (Proxy#)

{-|
The class of index types.
Expand Down
2 changes: 1 addition & 1 deletion src/Database/LSMTree/Internal/Index/Compact.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import Data.Maybe (fromMaybe)
import Data.Primitive.ByteArray (ByteArray (..), indexByteArray,
sizeofByteArray)
import Data.Primitive.Types (sizeOf)
import GHC.Exts (Proxy#, proxy#)
import qualified Data.Vector.Algorithms.Search as VA
import qualified Data.Vector.Generic as VG
import qualified Data.Vector.Primitive as VP
Expand All @@ -57,6 +56,7 @@ import Database.LSMTree.Internal.Page
import Database.LSMTree.Internal.Serialise
import Database.LSMTree.Internal.Unsliced
import Database.LSMTree.Internal.Vector
import GHC.Exts (Proxy#, proxy#)

{- $compact
Expand Down
2 changes: 1 addition & 1 deletion src/Database/LSMTree/Internal/Index/Ordinary.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import Data.ByteString.Short (ShortByteString (SBS))
import qualified Data.ByteString.Short as ShortByteString (length)
import Data.Primitive.ByteArray (ByteArray (ByteArray),
indexByteArray)
import GHC.Exts (Proxy#)
import Data.Vector (Vector, drop, findIndex, findIndexR, fromList,
last, length, (!))
import qualified Data.Vector.Primitive as Primitive (Vector (Vector), drop,
Expand All @@ -39,6 +38,7 @@ import Database.LSMTree.Internal.Page (NumPages (NumPages),
import Database.LSMTree.Internal.Serialise
(SerialisedKey (SerialisedKey'))
import Database.LSMTree.Internal.Vector (binarySearchL, mkPrimVector)
import GHC.Exts (Proxy#)

{-|
The type–version indicator for the ordinary index and its serialisation
Expand Down
2 changes: 1 addition & 1 deletion src/Database/LSMTree/Internal/RunBuilder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import Control.Monad.Primitive
import Data.BloomFilter (Bloom)
import Data.Foldable (for_, traverse_)
import Data.Primitive.PrimVar
import GHC.Exts (proxy#)
import Data.Word (Word64)
import Database.LSMTree.Internal.BlobRef (RawBlobRef)
import Database.LSMTree.Internal.ChecksumHandle
Expand All @@ -33,6 +32,7 @@ import Database.LSMTree.Internal.RawPage (RawPage)
import Database.LSMTree.Internal.RunAcc (RunAcc, RunBloomFilterAlloc)
import qualified Database.LSMTree.Internal.RunAcc as RunAcc
import Database.LSMTree.Internal.Serialise
import GHC.Exts (proxy#)
import qualified System.FS.API as FS
import System.FS.API (HasFS)
import qualified System.FS.BlockIO.API as FS
Expand Down
4 changes: 2 additions & 2 deletions test/Test/Database/LSMTree/Internal/Index/Compact.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE MagicHash #-}
{-# LANGUAGE RecordWildCards #-}
{-# OPTIONS_GHC -Wno-orphans #-}
{- HLINT ignore "Eta reduce" -}

Expand All @@ -23,7 +23,6 @@ import Data.Map.Strict (Map)
import qualified Data.Map.Strict as Map
import Data.Primitive.ByteArray (ByteArray (..), byteArrayFromList,
sizeofByteArray)
import GHC.Exts (proxy#)
import qualified Data.Vector.Primitive as VP
import qualified Data.Vector.Unboxed as VU
import qualified Data.Vector.Unboxed.Base as VU
Expand All @@ -39,6 +38,7 @@ import Database.LSMTree.Internal.Index.CompactAcc as IndexCompact
import Database.LSMTree.Internal.Page (PageNo (PageNo), PageSpan,
multiPage, singlePage)
import Database.LSMTree.Internal.Serialise
import GHC.Exts (proxy#)
import Numeric (showHex)
import Prelude hiding (max, min, pi)
import qualified Test.QuickCheck as QC
Expand Down

0 comments on commit 42bbe9a

Please sign in to comment.