Core: Internal.StorePath: explicit export list

This commit is contained in:
Anton-Latukha 2021-06-09 01:59:54 +03:00
parent 099d02dba3
commit d196ba5448
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
3 changed files with 24 additions and 5 deletions

View File

@ -10,7 +10,28 @@ Description : Representation of Nix store paths.
{-# LANGUAGE AllowAmbiguousTypes #-} {-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DataKinds #-}
module System.Nix.Internal.StorePath where module System.Nix.Internal.StorePath
( -- * Basic store path types
StorePath(..)
, StorePathName(..)
, StorePathSet
, mkStorePathHashPart
, StorePathHashPart(..)
, ContentAddressableAddress(..)
, NarHashMode(..)
, -- * Manipulating 'StorePathName'
makeStorePathName
, validStorePathName
, -- * Rendering out 'StorePath's
storePathToFilePath
, storePathToRawFilePath
, storePathToText
, storePathToNarInfo
, -- * Parsing 'StorePath's
parsePath
, pathParser
)
where
import System.Nix.Internal.Hash import System.Nix.Internal.Hash
import System.Nix.Internal.Base import System.Nix.Internal.Base
import qualified System.Nix.Internal.Base32 as Nix.Base32 import qualified System.Nix.Internal.Base32 as Nix.Base32

View File

@ -4,7 +4,7 @@ Description : Representation of Nix store paths.
module System.Nix.StorePath module System.Nix.StorePath
( -- * Basic store path types ( -- * Basic store path types
StorePath(..) StorePath(..)
, StorePathName , StorePathName(..)
, StorePathSet , StorePathSet
, mkStorePathHashPart , mkStorePathHashPart
, StorePathHashPart(..) , StorePathHashPart(..)
@ -12,7 +12,6 @@ module System.Nix.StorePath
, NarHashMode(..) , NarHashMode(..)
, -- * Manipulating 'StorePathName' , -- * Manipulating 'StorePathName'
makeStorePathName makeStorePathName
, unStorePathName
, validStorePathName , validStorePathName
, -- * Rendering out 'StorePath's , -- * Rendering out 'StorePath's
storePathToFilePath storePathToFilePath

View File

@ -11,8 +11,7 @@ import qualified Data.Text as T
import Test.Tasty.QuickCheck import Test.Tasty.QuickCheck
import System.Nix.Hash import System.Nix.Internal.Hash
import System.Nix.StorePath
import System.Nix.Internal.StorePath import System.Nix.Internal.StorePath
import Control.Applicative ( liftA3 ) import Control.Applicative ( liftA3 )
import Data.Coerce ( coerce ) import Data.Coerce ( coerce )