Skip to content

Commit d196ba5

Browse files
committed
Core: Internal.StorePath: explicit export list
1 parent 099d02d commit d196ba5

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

hnix-store-core/src/System/Nix/Internal/StorePath.hs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,28 @@ Description : Representation of Nix store paths.
1010
{-# LANGUAGE AllowAmbiguousTypes #-}
1111
{-# LANGUAGE DataKinds #-}
1212

13-
module System.Nix.Internal.StorePath where
13+
module System.Nix.Internal.StorePath
14+
( -- * Basic store path types
15+
StorePath(..)
16+
, StorePathName(..)
17+
, StorePathSet
18+
, mkStorePathHashPart
19+
, StorePathHashPart(..)
20+
, ContentAddressableAddress(..)
21+
, NarHashMode(..)
22+
, -- * Manipulating 'StorePathName'
23+
makeStorePathName
24+
, validStorePathName
25+
, -- * Rendering out 'StorePath's
26+
storePathToFilePath
27+
, storePathToRawFilePath
28+
, storePathToText
29+
, storePathToNarInfo
30+
, -- * Parsing 'StorePath's
31+
parsePath
32+
, pathParser
33+
)
34+
where
1435
import System.Nix.Internal.Hash
1536
import System.Nix.Internal.Base
1637
import qualified System.Nix.Internal.Base32 as Nix.Base32

hnix-store-core/src/System/Nix/StorePath.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ Description : Representation of Nix store paths.
44
module System.Nix.StorePath
55
( -- * Basic store path types
66
StorePath(..)
7-
, StorePathName
7+
, StorePathName(..)
88
, StorePathSet
99
, mkStorePathHashPart
1010
, StorePathHashPart(..)
1111
, ContentAddressableAddress(..)
1212
, NarHashMode(..)
1313
, -- * Manipulating 'StorePathName'
1414
makeStorePathName
15-
, unStorePathName
1615
, validStorePathName
1716
, -- * Rendering out 'StorePath's
1817
storePathToFilePath

hnix-store-core/tests/Arbitrary.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ import qualified Data.Text as T
1111

1212
import Test.Tasty.QuickCheck
1313

14-
import System.Nix.Hash
15-
import System.Nix.StorePath
14+
import System.Nix.Internal.Hash
1615
import System.Nix.Internal.StorePath
1716
import Control.Applicative ( liftA3 )
1817
import Data.Coerce ( coerce )

0 commit comments

Comments
 (0)