Safe Haskell | None |
---|---|
Language | Haskell2010 |
Stream out a NAR file from a regular file
Synopsis
- streamNarIO :: forall m. MonadIO m => (ByteString -> m ()) -> NarEffects IO -> FilePath -> m ()
- data IsExecutable
- isExecutable :: Functor m => NarEffects m -> FilePath -> m IsExecutable
- padLen :: Int -> Int
Documentation
streamNarIO :: forall m. MonadIO m => (ByteString -> m ()) -> NarEffects IO -> FilePath -> m () Source #
This implementation of Nar encoding takes an arbitrary yield
function from any streaming library, and repeatedly calls
it while traversing the filesystem object to Nar encode
data IsExecutable Source #
Instances
Eq IsExecutable Source # | |
Defined in System.Nix.Internal.Nar.Streamer (==) :: IsExecutable -> IsExecutable -> Bool # (/=) :: IsExecutable -> IsExecutable -> Bool # | |
Show IsExecutable Source # | |
Defined in System.Nix.Internal.Nar.Streamer showsPrec :: Int -> IsExecutable -> ShowS # show :: IsExecutable -> String # showList :: [IsExecutable] -> ShowS # |
isExecutable :: Functor m => NarEffects m -> FilePath -> m IsExecutable Source #