yarn2nix-0.8.0: Convert yarn.lock files to nix expressions

Safe HaskellNone
LanguageHaskell2010

Nix.Expr.Additions

Description

Nix generation helpers. No guarantee of stability (internal!).

Synopsis

Documentation

stringKey :: Text -> NExpr -> Binding NExpr Source #

Make a binding, but have the key be a string, not symbol.

($$=) :: Text -> NExpr -> Binding NExpr infixr 2 Source #

Infix version of stringKey.

dynamicKey :: Text -> NKeyName NExpr Source #

Make a dynamic key name that is only enclosed in double quotes (no antiquotes).

inheritStatic :: [Text] -> Binding e Source #

Inherit the given list of symbols.

simpleParamSet :: [Text] -> Params NExpr Source #

shortcut to create a list of closed params, like { foo, bar, baz }:

multiParam :: [Text] -> NExpr -> NExpr Source #

shortcut to create a list of multiple params, like a: b: c:

(!!.) :: NExpr -> Text -> NExpr infixl 8 Source #

Like !., but automatically convert plain strings to static keys.

data StrQ Source #

String quotation, either a plain string (S) or antiquoted (A)

Constructors

StrQ !Text 
AntiQ !NExpr 
Instances
IsString StrQ Source # 
Instance details

Defined in Nix.Expr.Additions

Methods

fromString :: String -> StrQ #

mkStrQ :: [StrQ] -> NExpr Source #

Create a double-quoted string from a list of antiquotes/plain strings.

mkStrQI :: [StrQ] -> NExpr Source #

Create a single-quoted string from a list of antiquotes/plain strings.