hnix-0.3.4: Haskell implementation of the Nix language

Safe HaskellNone
LanguageHaskell2010

Nix.Eval

Synopsis

Documentation

data NValueF m r Source #

An NValue is the most reduced form of an NExpr after evaluation is completed.

Instances

Functor m => Functor (NValueF m) Source # 

Methods

fmap :: (a -> b) -> NValueF m a -> NValueF m b #

(<$) :: a -> NValueF m b -> NValueF m a #

Show f => Show (NValueF m f) Source # 

Methods

showsPrec :: Int -> NValueF m f -> ShowS #

show :: NValueF m f -> String #

showList :: [NValueF m f] -> ShowS #

Generic (NValueF m r) Source # 

Associated Types

type Rep (NValueF m r) :: * -> * #

Methods

from :: NValueF m r -> Rep (NValueF m r) x #

to :: Rep (NValueF m r) x -> NValueF m r #

type Rep (NValueF m r) Source # 

type NValue m = Fix (NValueF m) Source #

evalExpr :: MonadFix m => NExpr -> NValue m -> m (NValue m) Source #

evalString :: Monad m => NValue m -> NString (NValue m -> m (NValue m)) -> m Text Source #

evalBinds :: Monad m => Bool -> NValue m -> [Binding (NValue m -> m (NValue m))] -> m (Map Text (NValue m)) Source #

evalSelector :: Monad m => Bool -> NValue m -> NAttrPath (NValue m -> m (NValue m)) -> m [Text] Source #