HORIZON HASKELLDocslts/ghc-10.0.xc62e4de2026-10-19Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · c62e4de · 2026-10-19

Modulehnix-store-nar-0.1.2.0Haskell2010

System.Nix.Nar.Parser

A streaming parser for the NAR format

  • 5 values
valuerunParser
  1. :: (MonadIO m, MonadBaseControl IO m)
  2. => NarEffects m

    Provide the effects set, usually narEffectsIO

  3. -> NarParser m a

    A parser to run, such as parseNar

  4. -> Handle

    A handle the stream containg the NAR. It should already be open and in ReadMode

  5. -> FilePath

    The root file system object to be created by the NAR

  6. -> m (Either String a)
#

Run a NarParser over a byte stream This is suitable for testing the top-level NAR parser, or any of the smaller utilities parsers, if you have bytes appropriate for them

valueparseNar :: (MonadIO m, MonadFail m) => NarParser m ()
#

Parse a NAR byte string, producing (). Parsing a NAR is mostly used for its side-effect: producing the file system objects packed in the NAR. That's why we pure ()