hnix-0.16.0: Haskell implementation of the Nix language
Safe HaskellNone
LanguageHaskell2010

Nix.String.Coerce

Synopsis

Documentation

data CopyToStoreMode Source #

Data type to avoid boolean blindness on what used to be called copyToStore

Constructors

CopyToStore

Add paths to the store as they are encountered

DontCopyToStore

Add paths to the store as they are encountered

coerceToString :: forall e t f m. (Framed e m, MonadStore m, MonadThrow m, MonadDataErrorContext t f m, MonadValue (NValue t f m) m) => (NValue t f m -> NValue t f m -> m (NValue t f m)) -> CopyToStoreMode -> CoercionLevel -> NValue t f m -> m NixString Source #

coerceAnyToNixString :: forall e t f m. (Framed e m, MonadStore m, MonadThrow m, MonadDataErrorContext t f m, MonadValue (NValue t f m) m) => (NValue t f m -> NValue t f m -> m (NValue t f m)) -> CopyToStoreMode -> NValue t f m -> m NixString Source #

coercePathToNixString :: (MonadStore m, Framed e m) => CopyToStoreMode -> Path -> m NixString Source #

Convert Path into NixString. With an additional option to store the resolved path into Nix Store.