Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Nix.Cache
- module Nix.Exec
- module Nix.Expr.Types
- module Nix.Expr.Shorthands
- module Nix.Expr.Types.Annotated
- module Nix.Frames
- module Nix.Render.Frame
- module Nix.Normal
- module Nix.Options
- module Nix.String
- module Nix.Parser
- module Nix.Pretty
- module Nix.Reduce
- module Nix.Thunk
- module Nix.Value
- module Nix.XML
- withNixContext :: forall e t f m r. (MonadNix e t f m, Has e Options) => Maybe Path -> m r -> m r
- nixEvalExpr :: (MonadNix e t f m, Has e Options) => Maybe Path -> NExpr -> m (NValue t f m)
- nixEvalExprLoc :: forall e t f m. (MonadNix e t f m, Has e Options) => Maybe Path -> NExprLoc -> m (NValue t f m)
- nixTracingEvalExprLoc :: (MonadNix e t f m, Has e Options, MonadIO m, Alternative m) => Maybe Path -> NExprLoc -> m (NValue t f m)
- evaluateExpression :: (MonadNix e t f m, Has e Options) => Maybe Path -> (Maybe Path -> NExprLoc -> m (NValue t f m)) -> (NValue t f m -> m a) -> NExprLoc -> m a
- processResult :: forall e t f m a. (MonadNix e t f m, Has e Options) => (NValue t f m -> m a) -> NValue t f m -> m a
Documentation
module Nix.Cache
module Nix.Exec
module Nix.Expr.Types
module Nix.Expr.Shorthands
module Nix.Expr.Types.Annotated
module Nix.Frames
module Nix.Render.Frame
module Nix.Normal
module Nix.Options
module Nix.String
module Nix.Parser
module Nix.Pretty
module Nix.Reduce
module Nix.Thunk
module Nix.Value
module Nix.XML
withNixContext :: forall e t f m r. (MonadNix e t f m, Has e Options) => Maybe Path -> m r -> m r Source #
Evaluate expression in the default context.
nixEvalExpr :: (MonadNix e t f m, Has e Options) => Maybe Path -> NExpr -> m (NValue t f m) Source #
Evaluate a nix expression in the default context
nixEvalExprLoc :: forall e t f m. (MonadNix e t f m, Has e Options) => Maybe Path -> NExprLoc -> m (NValue t f m) Source #
Evaluate a nix expression in the default context
nixTracingEvalExprLoc :: (MonadNix e t f m, Has e Options, MonadIO m, Alternative m) => Maybe Path -> NExprLoc -> m (NValue t f m) Source #
Evaluate a nix expression with tracing in the default context. Note that
this function doesn't do any tracing itself, but evalExprLoc
will be
tracing
is set to True
in the Options structure (accessible through
MonadNix
). All this function does is provide the right type class
context.