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

Nix.String.Coerce

Synopsis

Documentation

data CoercionLevel Source #

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

Constructors

CoerceStringy

Coerce only stringlike types: strings, paths, and appropriate sets

CoerceAny

Coerce everything but functions

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 :: (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 #