Safe Haskell | None |
---|---|
Language | Haskell2010 |
System.Nix.Internal.Nar.Streamer
Description
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 #
Constructors
NonExecutable | |
Executable |
Instances
Eq IsExecutable Source # | |
Defined in System.Nix.Internal.Nar.Streamer | |
Show IsExecutable Source # | |
Defined in System.Nix.Internal.Nar.Streamer Methods showsPrec :: Int -> IsExecutable -> ShowS # show :: IsExecutable -> String # showList :: [IsExecutable] -> ShowS # |
isExecutable :: Functor m => NarEffects m -> FilePath -> m IsExecutable Source #