NarSource The source to provide nar to the handler `(ByteString -> m ())`. It is isomorphic to ByteString by Yoneda lemma if the result is meant to be m (). It is done in CPS style so IO can be chunks.
Modulehnix-store-nar-0.1.2.0Haskell2010
System.Nix.Nar.Streamer
Stream out a NAR file from a regular file
- 2 types
- 4 values
- Packagehnix-store-nar-0.1.2.0
- Exports6
- LanguageHaskell2010
- LicenceApache-2.0
- SourceStreamer.hs
value
dumpString :: MonadIO m=> ByteStringthe string you want to dump
-> NarSource mThe nar result in CPS style
dumpString dump a string to nar in CPS style. The function takes in a ByteString, and build a `NarSource m`.
value
dumpPath dumpPath shorthand build a Source that turn file path to nar using the default narEffectsIO.
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
Instances2Eq, Show
Eq IsExecutableDefined in hnix-store-nar-0.1.2.0 · System.Nix.Nar.EffectsShow IsExecutableDefined in hnix-store-nar-0.1.2.0 · System.Nix.Nar.Effects