HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehnix-store-nar-0.1.2.0Haskell2010

System.Nix.Nar.Streamer

Stream out a NAR file from a regular file

Synopsis
typetype NarSource (m :: Type -> Type) = (ByteString -> m ()) -> m ()

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.

valuedumpPath
  1. :: MonadIO m
  2. => FilePath

    path for the file you want to dump to nar

  3. -> NarSource m

    the nar result in CPS style

dumpPath shorthand build a Source that turn file path to nar using the default narEffectsIO.