Skip to content

Commit

Permalink
Don't expose the S.M.Prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
adetokunbo committed Jan 16, 2024
1 parent 379493a commit 1aa57b0
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion mem-info.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ library
exposed-modules:
System.MemInfo
System.MemInfo.Choices
System.MemInfo.Prelude
System.MemInfo.Print
System.MemInfo.Proc
System.MemInfo.SysInfo
other-modules:
System.MemInfo.Prelude

hs-source-dirs: src
build-depends:
Expand Down Expand Up @@ -78,10 +79,12 @@ test-suite test
, genvalidity
, genvalidity-hspec
, genvalidity-text
, hashable
, mem-info
, hspec >=2.1 && <2.11
, QuickCheck
, text
, unix

-- printmem is the printmem command
executable printmem
Expand Down
2 changes: 1 addition & 1 deletion test/MemInfo/OrphanInstances.hs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ module MemInfo.OrphanInstances where

import Data.GenValidity (GenValid (..))
import Data.GenValidity.Text ()
import System.MemInfo.Prelude
import System.MemInfo.Proc (ExeInfo (..), StatusInfo)
import System.Posix.Types (CPid (..), ProcessID)
import Test.Validity (Validity)


Expand Down
3 changes: 2 additions & 1 deletion test/MemInfo/PrintSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ SPDX-License-Identifier: BSD3
-}
module MemInfo.PrintSpec (spec) where

import Data.Text (Text)
import qualified Data.Text as Text
import System.MemInfo.Prelude
import System.MemInfo.Print (fmtAsHeader, fmtMemUsage, fmtOverall)
import System.MemInfo.Proc (MemUsage (..))
import System.Posix.Types (ProcessID)
import Test.Hspec


Expand Down
4 changes: 3 additions & 1 deletion test/MemInfo/ProcSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ SPDX-License-Identifier: BSD3
-}
module MemInfo.ProcSpec (spec) where

import Data.Hashable (hash)
import Data.Text (Text)
import qualified Data.Text as Text
import Data.Word (Word16)
import Fmt (blockMapF, build, fmt, (+|), (|+))
import MemInfo.OrphanInstances ()
import System.MemInfo.Prelude
import Numeric.Natural (Natural)
import System.MemInfo.Proc
import Test.Hspec
import Test.QuickCheck
Expand Down
2 changes: 1 addition & 1 deletion test/MemInfo/SysInfoSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ SPDX-License-Identifier: BSD3
module MemInfo.SysInfoSpec (spec) where

import Data.GenValidity (GenValid (..))
import Data.Text (Text)
import Data.Word (Word8)
import Fmt (build, fmt, (+|), (|+))
import MemInfo.OrphanInstances ()
import System.MemInfo.Prelude
import System.MemInfo.SysInfo (KernelVersion, parseKernelVersion)
import Test.Hspec
import Test.QuickCheck
Expand Down

0 comments on commit 1aa57b0

Please sign in to comment.