Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Store
- openStore :: IO Store
- releaseStore :: Store -> IO ()
- followLinksToStorePath :: Store -> ByteString -> IO ByteString
- queryPathInfo :: Store -> ByteString -> IO (ForeignPtr (Ref ValidPathInfo))
- validPathInfoNarSize :: ForeignPtr (Ref ValidPathInfo) -> Int64
- validPathInfoNarHash :: ForeignPtr (Ref ValidPathInfo) -> IO ByteString
- validPathInfoDeriver :: ForeignPtr (Ref ValidPathInfo) -> IO ByteString
- unknownDeriver :: Text
- validPathInfoReferences :: ForeignPtr (Ref ValidPathInfo) -> IO PathSet
- computeFSClosure :: Store -> ClosureParams -> PathSet -> IO PathSet
- data ClosureParams = ClosureParams {}
- defaultClosureParams :: ClosureParams
- data PathSet
- newEmptyPathSet :: IO PathSet
- addToPathSet :: ByteString -> PathSet -> IO ()
- traversePathSet :: forall a. (ByteString -> IO a) -> PathSet -> IO [a]
- storeUri :: Store -> IO ByteString
Documentation
Getting a Store
releaseStore :: Store -> IO () Source #
Query a path
followLinksToStorePath :: Store -> ByteString -> IO ByteString Source #
Follow symlinks to the store and chop off the parts after the top-level store name
:: Store | |
-> ByteString | Exact store path, not a subpath |
-> IO (ForeignPtr (Ref ValidPathInfo)) | ValidPathInfo or exception |
validPathInfoNarSize :: ForeignPtr (Ref ValidPathInfo) -> Int64 Source #
The narSize field of a ValidPathInfo struct. Source: store-api.hh
validPathInfoNarHash :: ForeignPtr (Ref ValidPathInfo) -> IO ByteString Source #
Copy the narHash field of a ValidPathInfo struct. Source: store-api.hh
validPathInfoDeriver :: ForeignPtr (Ref ValidPathInfo) -> IO ByteString Source #
Deriver field of a ValidPathInfo struct. Source: store-api.hh
Returns unknownDeriver
when missing.
unknownDeriver :: Text Source #
String constant representing the case when the deriver of a store path does
not exist or is not known. Value: unknown-deriver
validPathInfoReferences :: ForeignPtr (Ref ValidPathInfo) -> IO PathSet Source #
References field of a ValidPathInfo struct. Source: store-api.hh
Get closures
computeFSClosure :: Store -> ClosureParams -> PathSet -> IO PathSet Source #
data ClosureParams Source #
addToPathSet :: ByteString -> PathSet -> IO () Source #
traversePathSet :: forall a. (ByteString -> IO a) -> PathSet -> IO [a] Source #